-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (46 loc) · 990 Bytes
/
docker-compose.yml
File metadata and controls
52 lines (46 loc) · 990 Bytes
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
version: '2.1'
volumes:
sld:
db-data:
mapproxy:
services:
db:
image: kartoza/postgis:12.0
volumes:
- db-data:/var/lib/postgresql
ports:
- "25434:5432"
environment:
- POSTGRES_DB=gis
- POSTGRES_USER=docker
- POSTGRES_PASS=docker
- ALLOW_IP_RANGE=0.0.0.0/0
restart: on-failure
healthcheck:
test: "exit 0"
mapserver:
image: kartoza/mapserver
volumes:
- ./map:/map
- sld:/sld
ports:
- "8182:80"
restart: on-failure
depends_on:
db:
condition: service_healthy
healthcheck:
test: curl --fail -s http://localhost:80/ || exit 1
interval: 1m30s
timeout: 10s
retries: 3
mapproxy:
image: kartoza/mapproxy
volumes:
- mapproxy:/mapproxy
restart: on-failure
ports:
- 8183:8080
depends_on:
mapserver:
condition: service_healthy