forked from unep-grid/mapx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
136 lines (135 loc) · 4.28 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
version: '3.2'
# ports : host:container
services:
traefik:
image : traefik:v2.3.2
command:
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
ports:
- target: 80
published: 8880
mode: host
- target: 8080
published: 8881
mode: host
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./_shared/traefik/certs:/certs
app:
env_file: mapx.dev.env
build: ./app/.
image: fredmoser/mx-app-shiny:1.8.17-debian
restart: always
ports:
- 3838
hostname: mx_app
depends_on:
- pg
- traefik
labels:
- "traefik.enable=true"
- "traefik.http.middlewares.nocache.headers.customresponseheaders.CACHE-CONTROL:no-cache"
- "traefik.http.routers.app.rule=Host(`app.mapx.localhost`)"
- "traefik.http.routers.app.entrypoints=web"
- "traefik.http.routers.app.service=app"
- "traefik.http.services.app.loadbalancer.server.port=3838"
- "traefik.http.routers.dev.rule=Host(`dev.mapx.localhost`)"
- "traefik.http.routers.dev.entrypoints=web"
- "traefik.http.routers.dev.service=dev"
- "traefik.http.services.dev.loadbalancer.server.port=3434"
volumes:
- ./app:/appdev
- ./_shared:/shared
api:
env_file: mapx.dev.env
build: ./api/.
image: fredmoser/mx-api-node:1.8.17-alpine
restart: always
ports:
- 3030
hostname: mx_api
depends_on:
- pg
- redis
- traefik
labels:
- "traefik.enable=true"
- "traefik.http.middlewares.nocache.headers.customresponseheaders.CACHE-CONTROL:no-cache"
- "traefik.http.middlewares.wcompress.compress=true"
- "traefik.http.middlewares.wcompress.compress.excludedcontenttypes=text/plain"
- "traefik.http.routers.api.rule=Host(`api.mapx.localhost`)"
- "traefik.http.routers.api.entrypoints=web"
- "traefik.http.routers.api.service=api"
- "traefik.http.services.api.loadbalancer.server.port=3030"
- "traefik.http.routers.apidev.rule=Host(`apidev.mapx.localhost`)"
- "traefik.http.routers.apidev.entrypoints=web"
- "traefik.http.routers.apidev.service=apidev"
- "traefik.http.services.apidev.loadbalancer.server.port=3333"
volumes:
- ./api:/apidev
- ./_shared:/shared
geoserver :
env_file: mapx.dev.env
build: ./geoserver/.
image: fredmoser/mx-api-geoserver:2.18.1-alpine
ports:
- 8882:8080
volumes:
- ./_shared/geoserver:/shared/geoserver
labels:
- "traefik.enable=true"
- "traefik.http.routers.geoserver.rule=Host(`geoserver.mapx.localhost`)"
- "traefik.http.routers.geoserver.entrypoints=web"
- "traefik.http.routers.geoserver.port=8080"
pg:
env_file: mapx.dev.env
image: postgis/postgis:13-3.1-alpine
restart: always
hostname: pg
volumes:
- ./_shared:/shared
- /var/run/docker.sock:/var/run/docker.sock
- ./pg/init/script_initdb.sh:/docker-entrypoint-initdb.d/script_initdb.sh
- ./pg/init/sql_files:/docker-entrypoint-initdb.d/sql_files
ports :
- 5432:5432
redis:
image: redis:alpine
restart: always
hostname: redis
command: redis-server /usr/local/etc/redis/redis.conf
volumes:
- ./redis.conf:/usr/local/etc/redis/redis.conf
ports:
- 6379
probe:
build: ./probe/.
image: fredmoser/mx-probe:0.2-go
labels:
- "traefik.enable=true"
- "traefik.http.routers.probe.rule=Host(`probe.mapx.localhost`)"
- "traefik.http.routers.probe.entrypoints=web"
- "traefik.http.services.probe.loadbalancer.server.port=8080"
ports:
- 8080
wsecho:
image: jmalloc/echo-server
labels:
- "traefik.enable=true"
- "traefik.http.routers.wsecho.rule=Host(`wsecho.mapx.localhost`)"
- "traefik.http.routers.wsecho.entrypoints=web"
- "traefik.http.services.wsecho.loadbalancer.server.port=8080"
ports:
- 8080
mailhog:
image: mailhog/mailhog
logging:
driver: none
labels:
- "traefik.enable=true"
- "traefik.http.routers.mailhog.rule=Host(`mail.mapx.localhost`)"
- "traefik.http.routers.mailhog.entrypoints=web"
- "traefik.http.services.mailhog.loadbalancer.server.port=8025"