This repository has been archived by the owner on Sep 28, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 40
/
docker-compose.production.yml
78 lines (74 loc) · 2.18 KB
/
docker-compose.production.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
version: "3.3"
services:
redis:
container_name: districtbuilder-redis
restart: on-failure
logging:
driver: syslog
options:
tag: districtbuilder-redis
nginx:
image: districtbuilder-nginx:${GIT_COMMIT:-latest}
container_name: districtbuilder-nginx
restart: on-failure
logging:
driver: syslog
options:
tag: districtbuilder-nginx
django:
image: districtbuilder-django:${GIT_COMMIT:-latest}
container_name: districtbuilder-django
restart: on-failure
volumes:
- /opt/district-builder/user-data/districtbuilder_data.zip:/data/districtbuilder_data.zip
- /opt/district-builder/user-data/config_settings.py:/usr/src/app/publicmapping/config_settings.py
- /opt/district-builder/user-data/config.xml:/usr/src/app/config/config.xml
command:
- "--workers=5"
- "--timeout=60"
- "--bind=0.0.0.0:${WEB_APP_PORT}"
- "--log-level=info"
- "--access-logfile=-"
- "--error-logfile=-"
- "--timeout=300"
- "publicmapping.wsgi"
links:
- xray:${XRAY_DAEMON_HOST}
logging:
driver: syslog
options:
tag: districtbuilder-django
celery:
image: districtbuilder-celery:${GIT_COMMIT:-latest}
container_name: districtbuilder-celery
restart: on-failure
volumes:
- /opt/district-builder/user-data/config_settings.py:/usr/src/app/publicmapping/config_settings.py
- /opt/district-builder/user-data/config.xml:/usr/src/app/config/config.xml
logging:
driver: syslog
options:
tag: districtbuilder-celery
geoserver:
image: districtbuilder-geoserver:${GIT_COMMIT:-latest}
container_name: districtbuilder-geoserver
restart: on-failure
logging:
driver: syslog
options:
tag: districtbuilder-geoserver
xray:
image: districtbuilder-xray:${GIT_COMMIT:-latest}
container_name: districtbuilder-xray
restart: on-failure
build:
context: ./xray
env_file:
- .env
ports:
- "${XRAY_DAEMON_PORT}:${XRAY_DAEMON_PORT}"
- "${XRAY_DAEMON_PORT}:${XRAY_DAEMON_PORT}/udp"
logging:
driver: syslog
options:
tag: districtbuilder-xray