-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
84 lines (83 loc) · 1.9 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
version: '3.7'
services:
osm-routes:
container_name: osm-routes
restart: unless-stopped
build: ./osmr-backend
ports:
- "7171:5000"
command: "run"
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "10m"
osm-routes-import:
container_name: osm-routes-import
build: ./osmr-backend
command: "import"
volumes:
- ${PBF_PATH}:/data/data.osm.pbf:ro
osm-geocoder:
container_name: osm-geocoder
restart: unless-stopped
image: mediagis/nominatim:4.4
ports:
- "7070:8080"
- "6432:5432"
environment:
PBF_PATH: /data/data.osm.pbf
REPLICATION_URL: ${PBF_REPLICATION}
NOMINATIM_PASSWORD: ${NOMINATIM_PASSWORD}
volumes:
- ${PBF_PATH}:/data/data.osm.pbf:ro
- osm-postgres-data:/var/lib/postgresql/14/main
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "10m"
osm-photon-import:
container_name: osm-photon-import
build: ./osm-photon
links:
- "osm-geocoder:geocoder"
environment:
- NOMINATIM_PASSWORD=${NOMINATIM_PASSWORD}
- NOMINATIM_HOST=geocoder
- NOMINATIM_PORT=5432
command: "import"
depends_on:
- osm-geocoder
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "10m"
volumes:
- osm-photon-data:/data
osm-photon:
container_name: osm-photon
restart: unless-stopped
build: ./osm-photon
ports:
- "2322:2322"
links:
- "osm-geocoder:geocoder"
depends_on:
- osm-geocoder
environment:
- NOMINATIM_PASSWORD=${NOMINATIM_PASSWORD}
- NOMINATIM_HOST=geocoder
- NOMINATIM_PORT=5432
command: "run"
volumes:
- osm-photon-data:/data
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "10m"
volumes:
osm-postgres-data:
osm-photon-data: