-
-
Notifications
You must be signed in to change notification settings - Fork 24
/
docker-compose.yml
57 lines (55 loc) · 1.82 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
# -*- coding: utf-8 -*-
# vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# oq-qgis-server
# Copyright (C) 2018-2019 GEM Foundation
#
# oq-qgis-server is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# oq-qgis-server is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
version: '2'
services:
nginx:
image: "nginx"
volumes:
- ./conf/nginx-fcgi-sample.conf:/etc/nginx/nginx.conf
ports:
- "127.0.0.1:8010:80"
networks:
- qgis-server-net
restart: always
depends_on:
- qgis-server
qgis-server:
image: "qgis/qgis-server:stable"
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
networks:
- qgis-server-net
volumes:
# Data should be mount RO when working
# with GeoPackages and more than one QGIS container
- ./test/data:/io/data:ro
- ./plugins:/io/plugins
- ./fonts:/usr/share/fonts
- ./svg:/var/lib/qgis/.local/share/QGIS/QGIS3/profiles/default/svg
# - ./conf/pg_service.conf:/etc/postgresql-common/pg_service.conf:ro
restart: always
networks:
qgis-server-net: