game-crawler/docker-compose.yaml

33 lines
861 B
YAML
Raw Normal View History

2024-09-24 06:17:11 -04:00
services:
2024-12-26 08:09:00 -05:00
game-crawler:
image: nite07/game-crawler
2024-09-24 06:17:11 -04:00
restart: unless-stopped
ports:
- "8080:8080"
2024-09-24 06:17:11 -04:00
environment:
- LOG_LEVEL=info
- SERVER_PORT=8080
2024-12-26 08:09:00 -05:00
- DATABASE_HOST=game-crawler-mongodb
2024-09-24 06:17:11 -04:00
- DATABASE_PORT=27017
- DATABASE_USER=root
- DATABASE_PASSWORD=password
2024-12-26 08:09:00 -05:00
- DATABASE_NAME=game-crawler
- REDIS_HOST=game-crawler-redis
2024-09-24 06:17:11 -04:00
- REDIS_PORT=6379
- REDIS_DB=0
# Read more about environment variables: config/config.go
2024-12-26 08:09:00 -05:00
game-crawler-mongodb:
2024-09-24 06:17:11 -04:00
image: mongo:latest
restart: unless-stopped
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: password
volumes:
- ./mongodb:/data/db
2024-12-26 08:09:00 -05:00
game-crawler-redis:
2024-09-24 06:17:11 -04:00
image: redis:latest
volumes:
- ./redis:/data
command: redis-server --appendonly yes
restart: unless-stopped