-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
266 lines (242 loc) · 7.23 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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
services:
### TRAEFIK PROXY ####
traefik:
image: "traefik:beaufort"
container_name: "traefik"
hostname: "traefik"
command:
- "--log.level=INFO"
- "--providers.docker=true"
- "--providers.docker.network=frontend"
- "--providers.docker.exposedbydefault=true"
- "--entrypoints.entrypoints-https.address=:443"
- "--entrypoints.entrypoints-http.address=:80"
- "--entrypoints.entrypoints-http.http.redirections.entryPoint.to=entrypoints-https"
- "--entrypoints.entrypoints-http.http.redirections.entryPoint.scheme=https"
ports:
- "80:80"
- "443:443"
volumes:
- "./letsencrypt:/letsencrypt"
- "/var/run/docker.sock:/var/run/docker.sock:ro"
restart: always
networks:
- frontend
depends_on:
- laboutik_nginx
- fedow_nginx
- lespass_nginx
#### FEDOW ####
fedow_django:
volumes:
- ./backup:/backup_tdd
extends:
file: ../Fedow/docker-compose.yml
service: fedow_django
command: 'bash start_dev.sh'
extra_hosts:
- fedow.tibillet.localhost:172.17.0.1
- lespass.tibillet.localhost:172.17.0.1
- laboutik.tibillet.localhost:172.17.0.1
ports:
- 8442:8000 # test stripe listen --forward-to http://127.0.0.1:8442/webhook_stripe/
fedow_memcached:
extends:
file: ../Fedow/docker-compose.yml
service: fedow_memcached
fedow_nginx:
depends_on:
- fedow_django
extends:
file: ../Fedow/docker-compose.yml
service: fedow_nginx
labels:
- traefik.http.routers.fedow_nginx.rule=Host(`fedow.$DOMAIN`)
#### LESPASS ####
lespass_postgres:
extends:
file: ../Lespass/docker-compose.yml
service: lespass_postgres
lespass_memcached:
extends:
file: ../Lespass/docker-compose.yml
service: lespass_memcached
lespass_redis:
extends:
file: ../Lespass/docker-compose.yml
service: lespass_redis
lespass_django:
volumes:
- ./backup:/backup_tdd
extends:
file: ../Lespass/docker-compose.yml
service: lespass_django
extra_hosts:
- fedow.tibillet.localhost:172.17.0.1
- lespass.tibillet.localhost:172.17.0.1
- laboutik.tibillet.localhost:172.17.0.1
command: 'bash start_dev.sh'
lespass_celery:
extends:
file: ../Lespass/docker-compose.yml
service: lespass_celery
command: "poetry run celery -A TiBillet worker -l INFO -B"
# command: 'bash start_dev.sh'
extra_hosts:
- "fedow.tibillet.localhost:172.17.0.1"
- "lespass.tibillet.localhost:172.17.0.1"
- "laboutik.tibillet.localhost:172.17.0.1"
# - "laboutik2.tibillet.localhost:172.17.0.1"
lespass_nginx:
extends:
file: ../Lespass/docker-compose.yml
service: lespass_nginx
labels:
- traefik.http.routers.lespass_nginx.rule=Host(`$DOMAIN`) || Host(`www.$DOMAIN`) || Host(`agenda.$DOMAIN`) || Host(`lespass.$DOMAIN`) || Host(`linterupteur.$DOMAIN`) || Host(`demo.$DOMAIN`) || Host(`bis.domainbis.localhost`) || Host(`domainbis.localhost`)
depends_on:
- lespass_django
#### CASHLESS 1 ####
laboutik_postgres:
extends:
file: ../LaBoutik/docker-compose.yml
service: laboutik_postgres
laboutik_memcached:
extends:
file: ../LaBoutik/docker-compose.yml
service: laboutik_memcached
laboutik_redis:
extends:
file: ../LaBoutik/docker-compose.yml
service: laboutik_redis
laboutik_django:
volumes:
- ./backup:/backup_tdd
extends:
file: ../LaBoutik/docker-compose.yml
service: laboutik_django
ports:
- 8000:8000
command: 'bash start_dev.sh'
extra_hosts:
- fedow.tibillet.localhost:172.17.0.1
- lespass.tibillet.localhost:172.17.0.1
- laboutik.tibillet.localhost:172.17.0.1
laboutik_celery:
extends:
file: ../LaBoutik/docker-compose.yml
service: laboutik_celery
# command: 'bash start_dev.sh'
command: 'bash start_celery.sh'
extra_hosts:
- fedow.tibillet.localhost:172.17.0.1
- lespass.tibillet.localhost:172.17.0.1
- laboutik.tibillet.localhost:172.17.0.1
laboutik_nginx:
extends:
file: ../LaBoutik/docker-compose.yml
service: laboutik_nginx
labels:
- traefik.http.routers.laboutik_nginx.rule=Host(`laboutik.$DOMAIN`) || Host(`cashless.$DOMAIN`)
depends_on:
- laboutik_django
#### CASHLESS 2 ####
#
# laboutik2_postgres:
# env_file: ../LaBoutik/env_test2
# hostname: laboutik2_postgres
# container_name: laboutik2_postgres
# volumes:
# - laboutik_postgres2_data:/var/lib/postgresql/data
# extends:
# file: ../LaBoutik/docker-compose.yml
# service: laboutik_postgres
#
# laboutik2_memcached:
# hostname: laboutik2_memcached
# container_name: laboutik2_memcached
# extends:
# file: ../LaBoutik/docker-compose.yml
# service: laboutik_memcached
#
# laboutik2_redis:
# hostname: laboutik2_redis
# container_name: laboutik2_redis
# extends:
# file: ../LaBoutik/docker-compose.yml
# service: laboutik_redis
#
# laboutik2_django:
# hostname: laboutik2_django
# container_name: laboutik2_django
# volumes:
# - ./backup:/backup_tdd
# extends:
# file: ../LaBoutik/docker-compose.yml
# service: laboutik_django
# env_file: ../LaBoutik/env_test2
# links:
# - laboutik2_postgres:postgres
# - laboutik2_redis:redis
# - laboutik2_memcached:memcached
# extra_hosts:
# - "fedow.tibillet.localhost:172.17.0.1"
# - "lespass.tibillet.localhost:172.17.0.1"
# - "laboutik.tibillet.localhost:172.17.0.1"
# - "laboutik2.tibillet.localhost:172.17.0.1"
# command: 'bash start_dev.sh'
#
# laboutik2_celery:
# hostname: laboutik2_celery
# container_name: laboutik2_celery
# extends:
# file: ../LaBoutik/docker-compose.yml
# service: laboutik_celery
# env_file: ../LaBoutik/env_test2
# links:
# - laboutik2_postgres:postgres
# - laboutik2_redis:redis
# - laboutik2_memcached:memcached
# extra_hosts:
# - "fedow.tibillet.localhost:172.17.0.1"
# - "lespass.tibillet.localhost:172.17.0.1"
# - "laboutik.tibillet.localhost:172.17.0.1"
# - "laboutik2.tibillet.localhost:172.17.0.1"
## command: 'bash start_dev.sh'
#
# laboutik2_nginx:
# hostname: laboutik2_nginx
# container_name: laboutik2_nginx
# extends:
# file: ../LaBoutik/docker-compose.yml
# service: laboutik_nginx
# links:
# - laboutik2_django:laboutik_django
# labels:
# - traefik.http.routers.laboutik2_nginx.rule=Host(`laboutik2.$DOMAIN`)
### Playwright test container
playwright:
hostname: playwright
container_name: playwright
build: playwright/PlaywrightDockerFile
network_mode: host
volumes:
- ./playwright:/playwright
tty: true
command: "/bin/bash"
extra_hosts:
- fedow.tibillet.localhost:172.17.0.1
- lespass.tibillet.localhost:172.17.0.1
- laboutik.tibillet.localhost:172.17.0.1
# Pour test stripe :
# stripe listen --forward-to https://fedow.tibillet.localhost/webhook_stripe/ --skip-verify
networks:
frontend:
external: true
fedow_backend:
lespass_backend:
laboutik_backend:
volumes:
lespass_dev_db:
laboutik_postgres_data:
laboutik_postgres2_data:
fedow_database: