Files
endurain/docker-compose.yml
João Vitória Silva 22d36dd16e Added default admin user creation
- Added default admin user creation (please read README file for more information)
 - Removed some imports from functions to the top of the document like it is supposed to
 - Changed backend .env file to backend root instead of config folder
 - docker-compose.yml updated
 - Removed config folder and not used files inside of it
 - README file updated
2023-12-25 21:26:29 +00:00

94 lines
2.2 KiB
YAML

version: '3'
services:
# frontend logic
frontend:
container_name: frontend
image: ghcr.io/joaovitoriasilva/endurain/frontend:latest
environment:
- BACKEND_PROTOCOL=https # http or https, default is http
- BACKEND_HOST=<api_host> # api host, default is backend
# Configure volume if you want to edit the code locally by clomming the repo
#volumes:
# - <local_path>/endurain/frontend:/var/www/html
ports:
- "8080:80" # frontend port, change per your needs
env_file:
- .env
restart: unless-stopped
# API logic
backend:
container_name: backend
image: ghcr.io/joaovitoriasilva/endurain/backend:latest
environment:
- DB_PASSWORD=changeme
- SECRET_KEY=changeme
- STRAVA_CLIENT_ID=changeme
- STRAVA_CLIENT_SECRET=changeme
- STRAVA_AUTH_CODE=changeme
ports:
- "98:80" # API port, change per your needs
# Configure volume if you want to edit the code locally by clomming the repo
#volumes:
# - <local_path>/endurain/backend:/app
env_file:
- .env
depends_on:
- mariadb
- jaeger
restart: unless-stopped
# mysql mariadb logic
mariadb:
image: mariadb:latest
container_name: mariadb
environment:
- MYSQL_ROOT_PASSWORD=changeme
- MYSQL_DATABASE=endurain
- MYSQL_USER=endurain
- MYSQL_PASSWORD=changeme
ports:
- "3306:3306"
volumes:
- <local_path>/mariadb:/var/lib/mysql
restart: unless-stopped
# Jaeger for opentelemetry
jaeger:
container_name: jaeger
image: jaegertracing/all-in-one:latest
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Lisbon
- COLLECTOR_ZIPKIN_HOST_PORT=:9411
ports:
- 6831:6831/udp
- 6832:6832/udp
- 5778:5778
- 16686:16686
- 4317:4317
- 4318:4318
- 14250:14250
- 14268:14268
- 14269:14269
- 9411:9411
restart: unless-stopped
# phpmyadmin for DB manipulation
phpmyadmin:
container_name: phpmyadmin
image: phpmyadmin
ports:
- 81:80
environment:
- PMA_HOST=mariadb
- PMA_ARBITRARY=1
depends_on:
- mariadb
restart: unless-stopped
networks:
default:
external: true
name: backend_network