-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
167 lines (159 loc) · 3.76 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
# For copyright and license terms, see COPYRIGHT.rst (top level of repository)
# Repository: https://github.com/C3S/collecting_society_docker
services:
database:
build:
context: ./services/build
target: database
args: &buildargs
ENVIRONMENT: ${ENVIRONMENT}
WORKDIR: ${WORKDIR}
TRYTON_VERSION: ${TRYTON_VERSION}
DEBUGGER_WINPDB: ${DEBUGGER_WINPDB}
DEBUGGER_DEBUGPY: ${DEBUGGER_DEBUGPY}
healthcheck:
test: /shared/healthcheck/database
interval: 10s
timeout: 5s
retries: 5
volumes:
- ./volumes/shared:/shared
env_file:
- services/database.env
environment:
SERVICE: database
webserver:
build:
context: ./services/build
target: webserver
args: *buildargs
healthcheck:
test: /shared/healthcheck/webserver
interval: 10s
timeout: 5s
retries: 5
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./volumes/shared:/shared
- ./services/config/nginx.proxy.conf:/etc/nginx/conf.d/proxy.conf
environment:
SERVICE: webserver
erpserver:
build:
context: ./services/build
target: erpserver
args: *buildargs
command: service-deploy
healthcheck:
test: /shared/healthcheck/erpserver
interval: 10s
timeout: 5s
retries: 5
volumes:
- ./volumes/shared:/shared
depends_on:
database:
condition: service_healthy
webserver:
condition: service_healthy
fingerprint:
condition: service_started
env_file:
- .env
- services/erpserver.env
environment:
SERVICE: erpserver
VIRTUAL_HOST: ${VIRTUAL_HOST_ERPSERVER}
VIRTUAL_PORT: ${VIRTUAL_PORT_ERPSERVER}
webapi:
build:
context: ./services/build
target: webapi
args: *buildargs
command: service-deploy
healthcheck:
test: /shared/healthcheck/webapi
interval: 10s
timeout: 5s
retries: 5
volumes:
- ./volumes/shared:/shared
depends_on:
database:
condition: service_healthy
webserver:
condition: service_started
env_file:
- .env
- services/webapi.env
environment:
SERVICE: webapi
VIRTUAL_HOST: ${VIRTUAL_HOST_WEBAPI}
VIRTUAL_PORT: ${VIRTUAL_PORT_WEBAPI}
webgui:
build:
context: ./services/build
target: webgui
args: *buildargs
command: service-deploy
healthcheck:
test: /shared/healthcheck/webgui
interval: 10s
timeout: 5s
retries: 5
volumes:
- ./volumes/shared:/shared
depends_on:
webapi:
condition: service_started
env_file:
- .env
- services/webgui.env
environment:
SERVICE: webgui
VIRTUAL_HOST: ${VIRTUAL_HOST_WEBGUI}
VIRTUAL_PORT: ${VIRTUAL_PORT_WEBGUI}
worker:
build:
context: ./services/build
target: worker
args: *buildargs
# cpu_percent: 50
mem_limit: 500m
command: service-deploy
healthcheck:
test: /shared/healthcheck/worker
interval: 5m
timeout: 5s
retries: 5
volumes:
- ./volumes/shared:/shared
depends_on:
erpserver:
condition: service_healthy
fingerprint:
condition: service_started
links:
- "erpserver:${VIRTUAL_HOST_ERPSERVER}"
env_file:
- .env
- services/worker.env
environment:
SERVICE: worker
fingerprint:
build:
context: ./services/build
target: fingerprint
args: *buildargs
command: service-deploy
healthcheck:
test: /shared/healthcheck/fingerprint
interval: 10s
timeout: 5s
retries: 5
volumes:
- ./volumes/shared:/shared
env_file:
- .env
environment:
SERVICE: fingerprint