1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
services: web: build: . command: gunicorn config.wsgi:application --bind 0.0.0.0:8000 volumes: - .:/app ports: - "3000:3000" env_file: - .env depends_on: - db db: image: postgres:14 volumes: - postgres_data:/var/lib/postgresql/data/ environment: - POSTGRES_PASSWORD=postgres volumes: postgres_data: