forked from open-plan-tool/gui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-postgres.yml
71 lines (67 loc) · 1.44 KB
/
docker-compose-postgres.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
version: "3.7"
services:
db_pg:
image: postgres:14.3-alpine
container_name: open_plan_pg
restart: always
env_file:
- .envs/db.postgres
expose:
- 5432
volumes:
- db_data_pg:/var/lib/postgresql/data/
networks:
- open_plan_network_pg
app_pg:
build:
context: ./app
dockerfile: ./compose/production/app_postgres/Dockerfile
container_name: django-open_plan_pg
restart: always
env_file:
- .envs/epa.postgres
expose:
- 8000
volumes:
- static_volume_pg:/src/cdn_static_root
command: "gunicorn --workers=2 --bind=0.0.0.0:8000 epa.wsgi:application"
depends_on:
- db_pg
networks:
- open_plan_network_pg
djangoq_pg:
build:
context: ./app
dockerfile: ./compose/production/app_postgres/Dockerfile
container_name: django-q-open_plan_pg
restart: always
env_file:
- .envs/epa.postgres
command: python manage.py qcluster
volumes:
- .:/code
expose:
- 8000
depends_on:
- db_pg
- app_pg
networks:
- open_plan_network_pg
nginx_pg:
image: nginx:1.21-alpine
container_name: ngx_pg
restart: always
ports:
- "8080:80"
volumes:
- ./nginx/postgres:/etc/nginx/conf.d
- static_volume_pg:/static
depends_on:
- app_pg
networks:
- open_plan_network_pg
volumes:
db_data_pg:
static_volume_pg:
networks:
open_plan_network_pg: