-
-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathcompose.data.yml
More file actions
80 lines (78 loc) · 1.83 KB
/
compose.data.yml
File metadata and controls
80 lines (78 loc) · 1.83 KB
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
services:
db:
image: postgis/postgis:18-3.6
restart: unless-stopped
environment:
TZ: Europe/Berlin
POSTGRES_PASSWORD: CHANGE_ME
POSTGRES_USER: postgres
POSTGRES_DB: postgres
command:
- -c
- synchronous_commit=off
ports:
- "5432:5432"
healthcheck:
test: [ "CMD", "pg_isready", "-U", "postgres" ]
retries: 5
interval: 10s
start_period: 20s
start_interval: 500ms
pgadmin:
image: dpage/pgadmin4:9
restart: unless-stopped
environment:
PGADMIN_DEFAULT_EMAIL: admin@example.com
PGADMIN_DEFAULT_PASSWORD: CHANGE_ME
TZ: Europe/Berlin
ports:
- "5050:80"
depends_on:
db:
condition: service_healthy
volumes:
- pgadmin_data:/var/lib/pgadmin
download-data:
image: alpine:latest
command: sh /map/download.sh europe/germany/bayern/oberbayern
environment:
TZ: Europe/Berlin
working_dir: /map
volumes:
- ./map/data/:/map/data/:rw
- ./map/download.sh:/map/download.sh:ro
- ./map/valhalla.json:/map/valhalla.json:ro
osm2pgsql:
image: iboates/osm2pgsql:latest
environment:
TZ: Europe/Berlin
PGPASSWORD: CHANGE_ME
command:
- osm2pgsql
- --create
- --slim
- --cache
- "4096" # cache size in MB, maybe too low for optimum
- --database
- postgres
- --user
- postgres
- --host
- db
- --port
- "5432"
- /map/data/oberbayern-latest.osm.pbf
- --output=flex
- --style
- /map/osm2pgsql/style.lua
volumes:
- ./map/data/:/map/data/:ro
- ./map/osm2pgsql/:/map/osm2pgsql/:ro
depends_on:
download-data:
condition: service_completed_successfully
db:
condition: service_healthy
volumes:
pgadmin_data:
driver: local