2022-08-25 08:26:59 +00:00
|
|
|
version: '3.8'
|
|
|
|
|
2022-08-25 04:56:17 +00:00
|
|
|
services:
|
|
|
|
web:
|
2022-08-25 08:26:59 +00:00
|
|
|
build: ./app
|
|
|
|
command: gunicorn gmba_django.wsgi:application --bind 0.0.0.0:8000
|
2022-08-25 04:56:17 +00:00
|
|
|
ports:
|
2022-08-25 08:26:59 +00:00
|
|
|
- 8000:8000
|
|
|
|
env_file:
|
|
|
|
- ./.env.prod
|
2022-08-25 04:56:17 +00:00
|
|
|
depends_on:
|
|
|
|
- db
|
2022-08-25 08:26:59 +00:00
|
|
|
db:
|
|
|
|
image: postgres:13.0-alpine
|
|
|
|
volumes:
|
|
|
|
- postgres_data:/var/lib/postgresql/data/
|
|
|
|
env_file:
|
|
|
|
- ./.env.prod
|
2022-08-25 04:56:17 +00:00
|
|
|
|
2022-08-25 08:26:59 +00:00
|
|
|
volumes:
|
|
|
|
postgres_data:
|
2022-08-25 04:56:17 +00:00
|
|
|
|