mirror of
https://github.com/evgen-app/chess_rpg_backend.git
synced 2024-11-22 17:47:11 +03:00
31 lines
634 B
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 |