-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.prod.yml
54 lines (51 loc) · 1.01 KB
/
docker-compose.prod.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
version: '3.7'
services:
web:
build:
context: ./services/web
dockerfile: Dockerfile.prod
command: gunicorn --bind 0.0.0.0:5000 "wsgi:start_app()"
volumes:
- media_volume:/home/app/web/project/tmtar/media
expose:
- 5000
env_file:
- ./env/.env
- ./env/.env.prod
depends_on:
- db
db:
image: crunchydata/crunchy-postgres-gis:centos8-13.3-3.1-4.6.3
hostname: db
ports:
- 5432:5432
volumes:
- ./configs:/pgconf
- db-pgdata:/pgdata
- db-wal:/pgwal
- db-backup:/backrestrepo
env_file:
- env/.env.db
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
admin:
container_name: admin_panel
build:
context: ./services/frontend
dockerfile: Dockerfile.prod
volumes:
- .:/app
- /app/node_modules
ports:
- 80:80
depends_on:
- web
volumes:
media_volume:
db-pgdata:
db-wal:
db-backup: