docker-compose.yml
463 Bytes
version: '3.8'
services:
web:
build:
context: .
dockerfile: Dockerfile
command: gunicorn --chdir ./collector collector.wsgi:application --bind 0.0.0.0:8000 --keep-alive 3600 --timeout 3600
ports:
- 8000:8000
env_file:
- ./.env.web
depends_on:
- db
db:
image: postgres:12.3
volumes:
- postgres_data:/var/lib/postgresql/data/
env_file:
- ./.env.db
volumes:
postgres_data: