-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathdocker-compose.yml
231 lines (231 loc) · 6.8 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
version: '3'
volumes:
postgiscaster133:
ntripcaster:
grafana-storage:
services:
#---CENTIPEDE---------------------------------------------------------------
#BKG Professional NtripCaster allows the dissemination of GNSS real-time data streams via internet
#Opensource but not free: https://igs.bkg.bund.de/ntrip/bkgcaster
ntripcaster:
build:
context: ./caster_docker
restart: always
container_name: ntripcaster_centipede
depends_on:
- postgiscaster
ports:
- 2101:2101
- 80:80
environment:
- FIRSTADMIN
- FIRSTADMINPSWD
- NTRIPADMIN
- NTRIPADMINPSWD
- NTRIPUSER
- NTRIPUSERPSWD
- ENCODERPSWD
volumes:
- ./caster_conf:/usr/local/ntripcaster/conf
- ./caster_logs:/usr/local/ntripcaster/logs
#Spatial for PostgreSQL object-relational database
#includes cartographic projections as well as geodetic transformations
postgiscaster:
image: kartoza/postgis:13-3.1
restart: always
container_name: postgiscaster_centipede
ports:
- 5432:5432
environment:
- POSTGRES_USER
- POSTGRES_PASS
- POSTGRES_DBNAME
- ALLOW_IP_RANGE=0.0.0.0/0
- POSTGRES_MULTIPLE_EXTENSIONS=postgis,hstore,postgis_topology
- SHARED_PRELOAD_LIBRARIES=pg_cron
- REPLICATION=true
# - REPLICATION_USER
# - REPLICATION_PASS
restart: always
entrypoint: > #get IGN raf18b grid for proj 7.2.1 and change caster_conf group before starting
bash -c 'FILE=/usr/share/proj/fr_ign_RAF18.tif &&
if [[ -f "$FILE" ]];
then echo "$FILE exists.";
else wget https://cdn.proj.org/fr_ign_RAF18b.tif -O /usr/share/proj/fr_ign_RAF18.tif;
fi;
chown -R :102 /home;
./docker-entrypoint.sh'
volumes:
- postgiscaster133:/var/lib/postgresql
- ./caster_conf:/home
- ./pg_backup:/srv #db backup accesibility
- ./pg_backup/centipede/setup-db.sql:/docker-entrypoint-initdb.d/setup-db.sql #make db at first boot
healthcheck:
test: "exit 0"
#Get RTCM3 message from Bases analyse and upd db
checkbase1:
build:
context: ./checkbase
image: checkbase:1
restart: always
container_name: checkbase1_centipede
network_mode: host
depends_on:
- postgiscaster
environment:
- POSTGRES_USER
- POSTGRES_PASS
- POSTGRES_DBNAME
- CAST_ADD
- CAST_PORT
- DB_IP
- REWRITEDOMAIN
- AUTHUSER
- AUTHPSWD
- MAILHUB
#Check if bases are alive, store in db & mail alert
checkbase2:
build:
context: ./checkbase2
image: checkbase:2
restart: always
container_name: checkbase2_centipede
network_mode: host
depends_on:
- postgiscaster
environment:
- POSTGRES_USER
- POSTGRES_PASS
- POSTGRES_DBNAME
- DB_IP
- SERVER
- FIRSTADMIN
- FIRSTADMINPSWD
- REWRITEDOMAIN
- AUTHUSER
- AUTHPSWD
- MAILHUB
#Gateway to the web map: Reverse proxy for lizmap.
nginxmap:
image: nginx:1
ports:
- 8083:80
restart: unless-stopped
container_name: nginxmap_centipede
volumes:
- ./map/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./map/lizmap:/srv/lizmap
#Lizmap Web Application generates dynamically a web map application
lizmap:
image: 3liz/lizmap-web-client:3.5
container_name: lizmap_centipede
command:
- php-fpm
entrypoint: > #modify file + chown & start lizmap
sh -c 'sh /tmp/start.sh
/bin/lizmap-entrypoint.sh
/usr/sbin/php-fpm7 -F -O'
environment:
- LIZMAP_CACHESTORAGETYPE
- LIZMAP_CACHEREDISHOST
- LIZMAP_CACHEREDISDB
- LIZMAP_HOME
- LIZMAP_USER
- LIZMAP_WMSSERVERURL
- LIZMAP_ADMIN_LOGIN
- LIZMAP_ADMIN_PSWD
- LIZMAP_ADMIN_EMAIL
- LIZMAP_ADMIN_DEFAULT_PASSWORD_SOURCE
- PM_MAX_CHILDREN
- PM_START_SERVERS
- PM_MIN_SPARE_SERVERS
- PM_MAX_SPARE_SERVERS
- POSTGRES_DBNAME
- POSTGRES_USER
- POSTGRES_PASS
depends_on:
- postgiscaster
expose:
- 9000
volumes:
- ./map/project:/srv/projects
- ./map/upload/:/srv/projects/cent_admin/media/upload
- ./map/upload/:/srv/projects/cent/media/upload:ro
- ./map/lizmap/var/lizmap-theme-config:/www/lizmap/var/lizmap-theme-config
- ./map/lizmap/var/lizmap-config:/www/lizmap/var/config
- ./map/lizmap/var/lizmap-db:/www/lizmap/var/db
- ./map/lizmap/www:/www/lizmap/www
- ./map/lizmap/var/log/lizmap:/www/lizmap/var/log
- ./map/lizmap/var/lizmap-modules:/www/lizmap/lizmap-modules
- ./map/lizmap/var/lizmap-my-packages:/www/lizmap/my-packages
- ./map/lizmap/etc:/srv/etc:ro
- ./map/lizmap/pswd:/tmp/pswd
- ./map/lizmap/start.sh:/tmp/start.sh
restart: unless-stopped
#QGIS Server is an open source WMS, WFS, OGC API for Features 1.0 (WFS3)
qgiserver:
image: 3liz/qgis-map-server:3.20
container_name: qgiserver_centipede
expose:
- 8080
- 18080
environment:
PGSERVICEFILE: /srv/etc/pg_service.conf
QGSRV_CACHE_ROOTDIR: /srv/projects
QGSRV_SERVER_WORKERS: 4
QGSRV_CACHE_SIZE: '20'
QGSRV_LOGGING_LEVEL: DEBUG
QGSRV_USER: 1000:1000
ROUTER_HOST: map
QGSRV_ZMQ_IDENTITY: OWS-SERVER
QGSRV_ZMQ_INADDR: tcp://*:18080
QGSRV_ZMQ_MAXQUEUE: 1000
QGSRV_ZMQ_TIMEOUT: 15000
LIBGL_DEBUG: verbose glxinfo
QGSRV_SERVER_PLUGINPATH: /srv/plugin
depends_on:
- postgiscaster
- lizmap
volumes:
- ./map/project:/srv/projects
- ./map/lizmap/etc:/srv/etc:ro
- ./map/project/plugin:/srv/plugins
restart: unless-stopped
#Store lizmap cache
redis:
image: redis:5-alpine
restart: always
container_name: redis_centipede
volumes:
- ./map/lizmap/redis:/data
#Analytics and interactive visualization web application
grafana:
image: grafana/grafana:8.1.3
container_name: grafana_centipede
restart: always
ports:
- 3001:3000
environment:
- GF_INSTALL_PLUGINS
- GF_SECURITY_ADMIN_USER
- GF_SECURITY_ADMIN_PASSWORD
- GF_RENDERING_SERVER_URL
- GF_RENDERING_CALLBACK_URL
- GF_LOG_FILTERS
- POSTGRES_DBNAME
- POSTGRES_USER
- POSTGRES_PASS
volumes:
- grafana-storage:/var/lib/grafana
- ./grafana/datasources:/etc/grafana/provisioning/datasources
- ./grafana/dashboards:/etc/grafana/provisioning/dashboards
- ./grafana/grafana.ini:/etc/grafana/grafana.ini
#Grafana backend plugin that handles rendering panels and dashboards to PNGs using a headless browser
renderer:
image: grafana/grafana-image-renderer:latest
ports:
- 8081
restart: always
container_name: renderer_centipede
environment:
ENABLE_METRICS: 'true'