-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
executable file
·82 lines (76 loc) · 1.81 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
version: '3'
services:
geoserver:
image: 'kartoza/geoserver:2.20.4'
hostname: geoserver
env_file:
- ./geoserver.env
ports:
- "8080:8080"
volumes:
- './data/geoserver/data_dir/:/opt/geoserver/data_dir'
- './fonts/:/opt/fonts'
depends_on:
- postgis
restart: on-failure
wmsclient:
image: 'nginx:1.21.3-alpine'
hostname: wmsclient
volumes:
- './data/nginx/html/nominatim-ui:/usr/share/nginx/html'
ports:
- "80:80"
restart: on-failure
nominatim:
image: 'camptocamp/nominatim:4.4.0'
hostname: nominatim
env_file:
- ./nominatim.env
volumes:
- './pbfs/:/tmp/pbfs'
ports:
- "8081:8080"
depends_on:
- postgis
- nominatim-worker
restart: on-failure
postgis:
image: 'kartoza/postgis:12.1'
hostname: postgis
container_name: osm-geoserver-postgis_postgis
env_file:
- ./postgis.env
volumes:
- 'pgdata:/var/lib/postgresql'
ports:
- "5432:5432"
expose:
- '5432'
restart: on-failure
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5
imposm-worker:
image: 'geotekne/imposm-worker:1.0.0'
hostname: imposm-worker
environment:
- PARAMETERS=-i /pbfs -c osm-geoserver-postgis_postgis -v 12.1 -p 5432 -u docker -w docker -d gis
volumes:
- './pbfs/:/pbfs'
depends_on:
- postgis
nominatim-worker:
image: 'camptocamp/nominatim:4.4.0'
hostname: nominatim-worker
env_file:
- ./nominatim.env
volumes:
- './pbfs/:/tmp/pbfs'
depends_on:
postgis:
condition: service_healthy
command: ["sh", "-c", "echo 'Initializing Nominatim DB...' && nominatim import --osm-file /tmp/pbfs/selection.osm.pbf"]
volumes:
pgdata: