chess_rpg_backend/docker-compose.yaml

31 lines
634 B
YAML

services:
daphne:
build:
dockerfile: ./build/Dockerfile
context: .
image: daphne
volumes:
- type: bind
source: ${ROOT_DIR}/logs
target: /app/logs
ports:
- "8080:8080"
- "8000:8000"
depends_on:
- postgres
tty: true
container_name: daphne_server
postgres:
image: postgres:latest
ports:
- "5432:5432"
environment:
- POSTGRES_USER=daphne
- POSTGRES_PASSWORD=daphne
- POSTGRES_DB=daphne
container_name: daphne_database
redis:
image: redis:latest
ports:
- "6379:6379"
container_name: daphne_redis