-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
71 lines (65 loc) · 1.71 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
# containerized qgis server + mapproxy + nginx
#
# dockerhub and github links:
#
# https://hub.docker.com/r/openquake/qgis-server
# https://github.com/gem/oq-qgis-server
#
# https://hub.docker.com/r/openquake/mapproxy-server
# https://github.com/gem/oq-mapproxy-docker
version: "3.8"
services:
qgis-server:
image: 'openquake/qgis-server:stable'
hostname: 'qgis-server'
environment:
# Do not run the embedded copy of nginx
SKIP_NGINX: 'true'
# Improve rendering performance
QGIS_SERVER_PARALLEL_RENDERING: 'true'
QGIS_SERVER_MAX_THREADS: 4
# Limit the maximum size returned by a GetMap
QGIS_SERVER_WMS_MAX_HEIGHT: 5000
QGIS_SERVER_WMS_MAX_WIDTH: 5000
# TODO use default loglevel
QGIS_SERVER_LOG_LEVEL: 0
networks:
- qgis-server-net
volumes:
- ./qgis/data:/io/data:ro
- ./qgis/plugins:/io/plugins
- ./qgis/fonts:/usr/share/fonts
- ./qgis/svg:/var/lib/qgis/.local/share/QGIS/QGIS3/profiles/default/svg
restart: always
expose:
# expose the FCGI port to be reverse-proxied by nginx
- '9993'
nginx-qgis:
image: 'nginx'
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
expose:
# expose the nginx http port to be reverse-proxied by mapproxy
- '80'
networks:
- qgis-server-net
restart: always
depends_on:
- qgis-server
mapproxy:
image: openquake/mapproxy-server:stable
environment:
MAPPROXY_CPU: 4
MAPPROXY_DEV: "true"
networks:
- qgis-server-net
volumes:
- ./mapproxy:/io
restart: always
user: '1000:1000'
depends_on:
- qgis-server
ports:
- "8080:8080"
networks:
qgis-server-net: