-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathdocker-compose.yml
80 lines (76 loc) · 1.92 KB
/
docker-compose.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
72
73
74
75
76
77
78
79
80
services:
nginx:
build: ./nginx
ports:
- "80:80"
- "443:443"
- "6320:6320"
volumes:
- static-content:/src/static
- /etc/letsencrypt:/etc/letsencrypt
- /var/lib/letsencrypt:/var/lib/letsencrypt
- /var/www/letsencrypt:/var/www/letsencrypt
restart: unless-stopped
depends_on:
- web
logging:
options:
max-size: 50m
web:
build: ./gerobug_web
expose:
- 8000
command: gunicorn gerobug_web.wsgi:application --bind 0.0.0.0:8000 --timeout 300
env_file:
- ./gerobug_dashboard/secrets/db_secret.env
environment:
PYTHONUNBUFFERED: 1
volumes:
- static-content:/src/static
restart: unless-stopped
depends_on:
- dashboard
dashboard:
build: ./gerobug_dashboard
# ports:
# - "6320:6320"
# command: python manage.py runserver 0.0.0.0:6320 --insecure
expose:
- 8001
command: gunicorn gerobug.wsgi --bind 0.0.0.0:8001 --timeout 300
env_file:
- ./gerobug_dashboard/secrets/gerobug_secret.env
- ./gerobug_dashboard/secrets/db_secret.env
environment:
PYTHONUNBUFFERED: 1
volumes:
- static-content:/src/static
- ./log/:/src/log
- ./migrations/prerequisites/:/src/prerequisites/migrations/
- ./migrations/dashboards/:/src/dashboards/migrations/
restart: unless-stopped
depends_on:
- db
logging:
options:
max-size: 50m
db:
image: 'postgres:latest'
expose:
- 5432
command: postgres -c hba_file=/opt/gerobug_hba.conf
env_file:
- ./gerobug_dashboard/secrets/db_secret.env
environment:
POSTGRES_DB: "gerobug_db"
POSTGRES_USER: "gerobug"
volumes:
- ./db_data/:/var/lib/postgresql/data/
- ./gerobug_hba.conf:/opt/gerobug_hba.conf
restart: unless-stopped
logging:
options:
max-size: 50m
volumes:
static-content:
static-files: