diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..4bc884a --- /dev/null +++ b/docker-compose.yaml @@ -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 \ No newline at end of file