docker-compose.yml
445 Bytes
version: '3.8'
services:
app:
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.app
depends_on:
- db
db:
image: postgres:12.3
volumes:
- data:/var/lib/postgresql/data/
env_file:
- ./.env.db
volumes:
data: