mirror of
https://github.com/evgen-app/chess_rpg_backend.git
synced 2024-11-25 11:04:03 +03:00
Added docker compose
This commit is contained in:
parent
4fd016f603
commit
c41b778065
31
docker-compose.yaml
Normal file
31
docker-compose.yaml
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
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
|
Loading…
Reference in New Issue
Block a user