File tree 3 files changed +40
-10
lines changed
3 files changed +40
-10
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,11 @@ MAILER_TRANSPORT=smtp
28
28
MAILER_USER=username
29
29
MAILER_PASSWORD=password
30
30
31
- # Api-specifiv stuff
31
+ # Host specific stuff
32
+ HOST_URL=dev.inowas.hydro.tu-dresden.de
33
+ TRAEFIK_NETWORK_NAME=traefik_web
34
+
35
+ # API specific stuff
32
36
API_SECRET=7bdbeb4493b2796ff94252f0736b18de433f8a67
33
37
API_BASE_URL=
34
38
API_HOST_URL=api.dev.inowas.hydro.tu-dresden.de
Original file line number Diff line number Diff line change 1
1
version : " 2.1"
2
2
3
3
services :
4
- app :
5
- build : ${APP_PATH}
6
- restart : always
7
- ports :
8
- - ${APP_HTTP_PORT}:5000
4
+ app :
5
+ build : ${APP_PATH}
6
+ restart : always
7
+ expose :
8
+ - 5000
9
+ labels :
10
+ - " traefik.docker.network=${TRAEFIK_NETWORK_NAME}"
11
+ - " traefik.enable=true"
12
+ - " traefik.wiki.frontend.rule=${HOST_URL}"
13
+ - " traefik.wiki.port=5000"
14
+ - " traefik.wiki.protocol=http"
15
+ networks :
16
+ - web
17
+ - default
18
+
19
+ networks :
20
+ web :
21
+ external :
22
+ name : ${TRAEFIK_NETWORK_NAME}
Original file line number Diff line number Diff line change @@ -22,8 +22,6 @@ services:
22
22
POSTGRES_USER : ${DATABASE_USER}
23
23
POSTGRES_PASSWORD : ${DATABASE_PASSWORD}
24
24
POSTGRES_DB : ${DATABASE_NAME}
25
- ports :
26
- - " 5432:5432"
27
25
28
26
php :
29
27
image : inowas/docker-php7-fpm-with-geos
@@ -208,10 +206,19 @@ services:
208
206
nginx :
209
207
image : inowas/docker-nginx
210
208
restart : always
211
- ports :
212
- - ${API_HTTP_PORT}: 80
209
+ expose :
210
+ - 80
213
211
volumes_from :
214
212
- php
213
+ networks :
214
+ - web
215
+ - default
216
+ labels :
217
+ - " traefik.docker.network=${TRAEFIK_NETWORK_NAME}"
218
+ - " traefik.enable=true"
219
+ - " traefik.frontend.rule=Host: api.${HOST_URL}"
220
+ - " traefik.port=80"
221
+ - " traefik.protocol=http"
215
222
216
223
modflow-calculation :
217
224
image : inowas/pymodelling:latest
@@ -284,6 +291,11 @@ services:
284
291
links :
285
292
- rabbitmq
286
293
294
+ networks :
295
+ web :
296
+ external :
297
+ name : ${TRAEFIK_NETWORK_NAME}
298
+
287
299
volumes :
288
300
api-data :
289
301
driver : local
You can’t perform that action at this time.
0 commit comments