2022-08-25 08:27:48 +00:00
|
|
|
version: '3.8'
|
|
|
|
|
|
|
|
services:
|
|
|
|
web:
|
|
|
|
build:
|
|
|
|
context: ./
|
|
|
|
dockerfile: Dockerfile.prod
|
2022-09-22 03:10:41 +00:00
|
|
|
command: gunicorn gmba_django.wsgi:application --bind [::]:8000
|
2022-08-25 08:27:48 +00:00
|
|
|
volumes:
|
2022-09-19 04:24:17 +00:00
|
|
|
- static_volume:/home/app/app/static
|
2022-09-19 08:05:02 +00:00
|
|
|
- media_volume:/home/app/app/media
|
2022-08-25 08:27:48 +00:00
|
|
|
expose:
|
|
|
|
- 8000
|
|
|
|
env_file:
|
|
|
|
- ./.env.prod
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
db:
|
|
|
|
image: postgres:13.0-alpine
|
|
|
|
volumes:
|
|
|
|
- postgres_data:/var/lib/postgresql/data/
|
|
|
|
env_file:
|
2022-09-20 03:50:41 +00:00
|
|
|
- ./.env.prod
|
2022-08-25 08:27:48 +00:00
|
|
|
nginx:
|
|
|
|
build: ./nginx
|
|
|
|
volumes:
|
2022-09-19 04:24:17 +00:00
|
|
|
- static_volume:/home/app/app/static
|
2022-09-19 08:05:02 +00:00
|
|
|
- media_volume:/home/app/app/media
|
2022-08-25 08:27:48 +00:00
|
|
|
ports:
|
|
|
|
- 1337:80
|
|
|
|
depends_on:
|
|
|
|
- web
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
postgres_data:
|
|
|
|
static_volume:
|
2022-09-19 08:05:02 +00:00
|
|
|
media_volume:
|