-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.rain.yml
243 lines (223 loc) · 5.54 KB
/
docker-compose.rain.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
version: "2.3"
x-logging: &default-logging
driver: json-file
options:
max-size: "10m"
max-file: "5"
tag: "{{.ImageName}}|{{.Name}}|{{.ImageFullID}}|{{.FullID}}"
services:
ows:
restart: always
build: ows/
volumes:
- ./ows/nginx/conf.d:/etc/nginx/conf.d
- ./ows/nginx/log:/var/log/nginx
- ./ows/wps/pywps:/opt/pywps
- ./ows/wps/log:/var/log/pywps
- ./ows/wps/data/grass_location:/data/grass_location
- wps_output_data:/var/www/wps/output
- ./ows/wms:/opt/mapserv/wms
- ./ows/wms/data:/opt/mapserv/wms_data
- ./ows/wms/log:/var/log/mapserv
- ./ows/wfs:/opt/mapserv/wfs
- ./qgis/styles:/data/styles
- ./rain6h-cn-runoff:/var/www/html/rain6h-cn-runoff
ports:
- 8081
- 80
env_file:
- ./ows/ows.env
environment:
- NGINX_HTTP=https
- NGINX_HOST=rain1.fsv.cvut.cz
- NGINX_PORT=443
links:
- db
ows_tests:
restart: always
build: ows_tests/
depends_on:
- ows
volumes:
- ./ows_tests/wps:/opt/tests/wps
- ./ows_tests/log:/var/log/ows_tests
- ./ows/wps/log:/data
environment:
- OWS_TEST_REPEAT=24
env_file:
- ./notifier.env
db:
restart: always
build: ows/db/
volumes:
- ./ows/db/data:/data
env_file:
- ./ows/ows.env
environment:
- POSTGRES_PASSWORD=20rain20
- BPEJ_FILE=bpej_2021010410908.zip
# docs:
# build: docs/
# volumes:
# - ./docs/:/docs/
# - docs_data:/docs/_build/html
# Gisquick starts here
qgis-server:
mem_limit: 3000M
restart: always
image: gisquick/qgis-server:3.22
volumes:
- publish:/publish/
- ./gisquick/qgis/plugins:/usr/lib/qgis/python/plugins
environment:
- QGIS_SERVER_IGNORE_BAD_LAYERS=1
- QGIS_SERVER_LOG_LEVEL=0
- QGIS_PLUGINPATH=/usr/lib/qgis/python/plugins/
- QGIS_SERVER_PARALLEL_RENDERING=true
expose:
- 5555
logging: *default-logging
postgres:
restart: always
image: postgres:12-alpine
volumes:
- db-data:/var/lib/postgresql/data
env_file:
- postgres.env
ports:
- 5432
logging: *default-logging
redis:
restart: always
image: redis
volumes:
- redisdata:/var/run/redis
ports:
- "6379"
logging: *default-logging
command: redis-server --port 6379
app:
depends_on:
- postgres
- redis
restart: always
image: gisquick/server
volumes:
- publish:/publish/
environment:
- GISQUICK_PROJECTS_ROOT=/publish
- GISQUICK_MAPSERVER_URL=http://caddy:10080/qgis-server
- GISQUICK_LANGUAGE=cs
- GISQUICK_SIGNUP_API=False
- GISQUICK_LANDING_PROJECT=rain/rain6h
- REDIS_ADDR=redis:6379
- AUTH_SESSION_EXPIRATION=96h
- AUTH_SECRET_KEY=${SECRET_KEY}
- WEB_SITE_URL=${SERVER_URL}
env_file:
- postgres.env
ports:
- 3000
logging: *default-logging
web-map:
image: gisquick/web-map
volumes:
- assets:/assets/
web-settings:
image: gisquick/web-settings
volumes:
- assets:/assets/
caddy:
depends_on:
- app
restart: always
image: caddy:2-alpine
volumes:
- ./gisquick/caddy/Caddyfile:/etc/caddy/Caddyfile
- caddy_data:/data
- caddy_config:/config
- assets:/var/www/html/
- ./gisquick/data/media:/var/www/media/
# Rain modification starts here
- wps_output_data:/var/www/wps/output/
- ./rain6h-cn-runoff:/var/www/html/rain6h-cn-runoff
# Rain modification ends here
ports:
- 2019
- 10080
- 80:80
- 443:443
logging: *default-logging
# Rain modification starts here
links:
# - docs
- ows
# Rain modification ends here
prometheus:
restart: unless-stopped
image: prom/prometheus
volumes:
- ./gisquick/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus_data:/prometheus
ports:
- 9090
logging: *default-logging
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--web.console.libraries=/etc/prometheus/console_libraries'
- '--web.console.templates=/etc/prometheus/consoles'
- '--web.enable-lifecycle'
loki:
restart: always
image: grafana/loki:2.6.1
volumes:
- ./gisquick/loki/loki-config.yaml:/etc/loki/config.yaml
- loki:/loki
ports:
- 3100
logging: *default-logging
command: -config.file=/etc/loki/config.yaml
promtail:
restart: always
image: grafana/promtail:2.6.1
volumes:
- /var/lib/docker/containers:/var/lib/docker/containers:ro
- ./gisquick/promtail:/etc/promtail-config/
logging: *default-logging
command: -config.file=/etc/promtail-config/config.yml
grafana:
restart: unless-stopped
image: grafana/grafana
volumes:
- grafana-data:/var/lib/grafana
environment:
- GF_SERVER_ROOT_URL=${SERVER_URL}/admin/grafana/
- GF_SERVER_SERVE_FROM_SUB_PATH=true
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_USERS_VIEWERS_CAN_EDIT=true
ports:
- 3000
logging: *default-logging
# Gisquick ends here
volumes:
# Gisquick starts here
publish:
driver: local
driver_opts:
type: none
# Rain modification starts here
device: ${PWD}/gisquick/data/publish/
# Rain modification starts here
o: bind
db-data:
redisdata:
assets:
prometheus_data:
grafana-data:
loki:
caddy_data:
caddy_config:
# Gisquick ends here
wps_output_data:
# docs_data: