Files
buildpath/docker-compose.yml
vhaudiquet 52e1acd96c
All checks were successful
pipeline / build-and-push-images (push) Successful in 1m6s
pipeline / deploy (push) Successful in 41s
Added MONGO_HOST variable
2025-01-20 12:30:55 +01:00

68 lines
1.6 KiB
YAML

services:
mongo:
hostname: mongo
image: mongo:latest
restart: always
volumes:
- mongo_data:/data/db
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: password
mongo-express:
image: mongo-express
restart: always
ports:
- target: 8081
published: 8081
mode: host
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: root
ME_CONFIG_MONGODB_ADMINPASSWORD: password
ME_CONFIG_MONGODB_URL: mongodb://mongo:27017/
ME_CONFIG_BASICAUTH: "false"
patch_detector:
image: git.vhaudiquet.fr/vhaudiquet/lolstats-patch_detector:${GIT_COMMIT_HASH:-latest}
build: ./patch_detector
restart: "no"
deploy:
restart_policy:
condition: any
delay: '0'
window: 10s
environment:
MONGO_USER: root
MONGO_PASS: password
MONGO_HOST: mongo
match_collector:
image: git.vhaudiquet.fr/vhaudiquet/lolstats-match_collector:${GIT_COMMIT_HASH:-latest}
build: ./match_collector
restart: "no"
deploy:
restart_policy:
condition: any
delay: '0'
window: 20s
environment:
MONGO_USER: root
MONGO_PASS: password
MONGO_HOST: mongo
RIOT_API_KEY: ${RIOT_API_KEY}
# restarter:
frontend:
image: git.vhaudiquet.fr/vhaudiquet/lolstats-frontend:${GIT_COMMIT_HASH:-latest}
build: ./frontend
restart: always
ports:
- target: 3000
published: 3000
mode: host
environment:
MONGO_USER: root
MONGO_PASS: password
MONGO_HOST: mongo
volumes:
mongo_data: