-
-
Notifications
You must be signed in to change notification settings - Fork 42
/
docker-compose.yml
96 lines (95 loc) · 3.78 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
services:
lizmap:
image: 3liz/lizmap-web-client:${LIZMAP_VERSION_TAG}
environment:
LIZMAP_CACHEREDISDB: '1'
LIZMAP_CACHEREDISHOST: redis
LIZMAP_CACHESTORAGETYPE: redis
LIZMAP_HOME: /srv/lizmap
LIZMAP_USER: ${LIZMAP_UID}
LIZMAP_WMSSERVERURL: http://map:8080/ows/
LIZMAP_CONFIG_INCLUDE: /srv/etc
PGSERVICEFILE: /srv/etc/pg_service.conf
PGPASSFILE: /srv/etc/pgpass.conf
volumes:
- { type: bind, source: "${LIZMAP_PROJECTS}", target: /srv/projects }
- { type: bind, source: "${LIZMAP_DIR}/var/lizmap-theme-config", target: /www/lizmap/var/lizmap-theme-config }
- { type: bind, source: "${LIZMAP_DIR}/var/lizmap-config", target: /www/lizmap/var/config }
- { type: bind, source: "${LIZMAP_DIR}/var/lizmap-db", target: /www/lizmap/var/db }
- { type: bind, source: "${LIZMAP_DIR}/var/lizmap-log", target: /www/lizmap/var/log }
- { type: bind, source: "${LIZMAP_DIR}/www", target: /www/lizmap/www }
- { type: bind, source: "${LIZMAP_DIR}/var/lizmap-modules", target: /www/lizmap/lizmap-modules }
- { type: bind, source: "${LIZMAP_DIR}/var/lizmap-my-packages", target: /www/lizmap/my-packages }
- { type: bind, source: "${LIZMAP_DIR}/etc", target: /srv/etc, read_only: true }
command:
- php-fpm
depends_on:
postgis:
condition: service_healthy
restart: unless-stopped
map:
image: 3liz/qgis-map-server:${QGIS_VERSION_TAG}
environment:
PGSERVICEFILE: /srv/etc/pg_service.conf
PGSPASSFILE: /srv/etc/pgpass.conf
QGIS_OPTIONS_PATH: /srv/etc/qgis
QGIS_SERVER_LIZMAP_REVEAL_SETTINGS: 'yes'
QGSRV_API_ENABLED_LIZMAP: 'yes'
QGSRV_CACHE_SIZE: '20'
QGSRV_CACHE_STRICT_CHECK: 'no'
QGSRV_CACHE_ROOTDIR: /srv/projects
QGSRV_LOGGING_LEVEL: DEBUG
QGSRV_USER: ${LIZMAP_UID}:${LIZMAP_GID}
QGSRV_SERVER_PLUGINPATH: /srv/plugins
QGSRV_SERVER_RESTARTMON: /srv/.qgis-restart
QGSRV_SERVER_WORKERS: ${QGIS_MAP_WORKERS}
volumes:
- { type: bind, source: "${LIZMAP_PROJECTS}", target: /srv/projects }
- { type: bind, source: "${LIZMAP_DIR}/plugins", target: /srv/plugins }
- { type: bind, source: "${LIZMAP_DIR}/wps-data", target: /srv/data }
- { type: bind, source: "${LIZMAP_DIR}/etc", target: /srv/etc, read_only: true }
ports:
- ${OWS_PORT}:8080
restart: unless-stopped
redis:
image: redis:5-alpine
volumes:
- { type: volume, source: redis_data, target: /data }
web:
image: nginx:alpine
user: ${LIZMAP_UID}:${LIZMAP_GID}
volumes:
- { type: bind, source: "${LIZMAP_DIR}/etc/nginx.conf", target: /etc/nginx/nginx.conf }
- { type: bind, source: "${LIZMAP_DIR}/var/log/nginx", target: /var/log/nginx }
- { type: bind, source: "${LIZMAP_DIR}/var/nginx-cache", target: /var/cache/nginx }
- { type: bind, source: "${LIZMAP_DIR}", target: /srv/lizmap }
ports:
- ${LIZMAP_PORT}:8080
depends_on:
- lizmap
postgis:
image: 3liz/postgis:${POSTGIS_VERSION}
volumes:
- { type: volume, source: postgis_data, target: /var/lib/postgresql/data }
- { type: bind, source: "${LIZMAP_DIR}/etc/postgres.init.d", target: /docker-entrypoint-initdb.d }
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_LIZMAP_DB: ${POSTGRES_LIZMAP_DB}
POSTGRES_LIZMAP_USER: ${POSTGRES_LIZMAP_USER}
POSTGRES_LIZMAP_PASSWORD: ${POSTGRES_LIZMAP_PASSWORD}
ports:
- ${POSTGIS_PORT}:5432
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d ${POSTGRES_LIZMAP_DB} -q || exit 1"]
interval: 10s
timeout: 5s
start_period: 60s
networks:
default:
aliases:
- ${POSTGIS_ALIAS}
volumes:
postgis_data:
driver: local
redis_data:
driver: local