forked from ncareol/osm-tiles-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
96 lines (92 loc) · 3.27 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
postgis:
#image: osm-tiles-server:2.0
#image: bbouffaut/osm-tiles-server:2.0
#image: ncareol/osm-tiles
image: registry.bbofamily.com/osm-tiles-server:2.1
hostname: postgis
volumes:
# keep postgresql database files on host in ./docker/osm:
- /srv/z1-db_data/osm-tiles-server_postgre:/var/lib/postgresql
# mount OSM data file from host into Docker container
- /srv/z1-db_data/osm-tiles-server_data/europe-latest.osm.pbf:/tmp/europe-latest.osm.pbf
# mount OSM data file from host into Docker container
- /srv/z1-db_data/osm-tiles-server_data/srtm_list.txt:/tmp/srtm_list.txt
# keep OSM tiles on host in ./docker/osm:
- /srv/z1-db_data/osm-tiles-server_data:/data
environment:
OSM_IMPORT_FILE: '/tmp/europe-latest.osm.pbf'
SRTM_LIST_FILE: '/tmp/srtm_list.txt'
OSM_IMPORT_CACHE: '2000'
OSM_MAX_ZOOM: '14'
OSM_RENDER_FORCE: 'false'
expose:
- 5432
ports:
- "5432:5432"
command: 'startservices_postgis'
opentopomap:
#image: osm-tiles-server:2.0
#image: bbouffaut/osm-tiles-server:2.0
#image: ncareol/osm-tiles
image: registry.bbofamily.com/osm-tiles-server:2.1
hostname: opentopomap
links:
- postgis
volumes:
# keep OSM tiles on host in ./docker/osm:
- /srv/z1-db_data/osm-tiles-server_mod_tile:/var/lib/mod_tile
environment:
OSM_MAX_ZOOM: '14'
OSM_RENDER_FORCE: 'false'
ports:
- "8383:80"
extra_hosts:
- "postgis:172.17.0.7"
command: 'startservices_render_opentopomap'
osm:
#image: osm-tiles-server:2.0
#image: bbouffaut/osm-tiles-server:2.0
#image: ncareol/osm-tiles
image: registry.bbofamily.com/osm-tiles-server:2.1
hostname: osm
links:
- postgis
volumes:
# keep OSM tiles on host in ./docker/osm:
- /srv/z1-db_data/osm-tiles-server_mod_tile:/var/lib/mod_tile
environment:
OSM_MAX_ZOOM: '14'
OSM_RENDER_FORCE: 'false'
ports:
- "8282:80"
command: 'startservices_render_osm'
all:
#image: osm-tiles-server:2.0
#image: bbouffaut/osm-tiles-server:2.0
#image: ncareol/osm-tiles
image: registry.bbofamily.com/osm-tiles-server:2.1
hostname: postgis
volumes:
# keep postgresql database files on host in ./docker/osm:
- /srv/z1-db_data/osm-tiles-server_postgre:/var/lib/postgresql
# mount OSM data file from host into Docker container
- /srv/z1-db_data/osm-tiles-server_data/europe-latest.osm.pbf:/tmp/europe-latest.osm.pbf
# mount OSM data file from host into Docker container
- /srv/z1-db_data/osm-tiles-server_data/srtm_list.txt:/tmp/srtm_list.txt
# keep OSM tiles on host in ./docker/osm:
- /srv/z1-db_data/osm-tiles-server_data:/data
# keep OSM tiles on host in ./docker/osm:
- /srv/z1-db_data/osm-tiles-server_mod_tile:/var/lib/mod_tile
environment:
OSM_IMPORT_FILE: '/tmp/europe-latest.osm.pbf'
SRTM_LIST_FILE: '/tmp/srtm_list.txt'
OSM_IMPORT_CACHE: '2000'
OSM_MAX_ZOOM: '14'
OSM_RENDER_FORCE: 'false'
expose:
- 5432
- 80
ports:
- "5432:5432"
- "8383:80"
command: 'startservices_postgis_and_render_opentopomap'