-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
104 lines (95 loc) · 2.52 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
97
98
99
100
101
102
103
104
version: "2.4"
services:
importer: &python
build: ./processing
volumes:
- ./data:/data
- ./processing:/processing
- ./kinto:/kinto
command: python processing/importer.py
environment:
KINTO_URL: http://kinto:8888/v1
KINTO_ADMIN: admin
KINTO_ADMIN_PASSWORD: banane
depends_on:
kinto:
condition: service_healthy
initializer:
<<: *python
restart: "no"
command: bash /kinto/init.sh
geocoder:
<<: *python
restart: "no"
command: python processing/geocoder.py
depends_on:
kinto:
condition: service_healthy
nominatim:
condition: service_started
overpass:
condition: service_started
kinto:
image: kinto/kinto-server:13.6.2
ports:
- 8888:8888
volumes:
- ./kinto/config:/etc/kinto
healthcheck:
test:
- CMD-SHELL
- >-
python -c "import requests; requests.get('http://localhost:8888/')"
interval: 10s
timeout: 5s
retries: 5
depends_on:
postgres:
condition: service_healthy
postgres:
image: postgres:12-alpine
environment:
POSTGRES_USER: postgres
POSTGRES_DB: accidents
POSTGRES_PASSWORD: PASSWORD
volumes:
- ./postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
editor-data-helpers:
build:
context: editor-data-helpers
ports:
- "9000:9000"
environment:
POSTGRES_URL: postgresql://postgres:PASSWORD@postgres/accidents
depends_on:
postgres:
condition: service_healthy
nominatim-import:
image: mediagis/nominatim:3.1
volumes:
- ./nominatim/muenster-regbez-latest.osm.pbf:/data/dump.osm.pbf
- ./nominatim/postgres_data:/data/postgres_data
command: sh /app/init.sh /data/dump.osm.pbf postgres_data 4
nominatim:
image: mediagis/nominatim:3.1
volumes:
- ./nominatim/postgres_data:/var/lib/postgresql/9.5/main
ports:
- "8080:8080"
command: bash /app/start.sh
overpass:
image: wiktorn/overpass-api:0.7.55
environment:
OVERPASS_PLANET_URL: file:///planet/muenster-regbez-latest.osm.bz2
volumes:
- ./overpass/db:/db
- ./overpass/muenster-regbez-latest.osm.bz2:/planet/muenster-regbez-latest.osm.bz2
- ./overpass/supervisord.conf:/etc/supervisor/conf.d/supervisord.conf
- ./overpass/docker-entrypoint.sh:/app/docker-entrypoint.sh
ports:
- "80:80"