Added docker compose

This commit is contained in:
Alexander Karpov 2022-07-02 15:15:37 +03:00
parent 4fd016f603
commit c41b778065

31
docker-compose.yaml Normal file
View 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