Skip to content

Commit 7f4a98e

Browse files
committed
Merge from develop
2 parents b4a37a2 + 774207b commit 7f4a98e

File tree

1 file changed

+211
-53
lines changed

1 file changed

+211
-53
lines changed

docker-compose.yml

Lines changed: 211 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,222 @@
1+
12
version: '3'
23
services:
3-
#=========================================================================
4-
# OMS-SEED-TILER section
5-
#=========================================================================
6-
# tiler-db:
7-
# image: osmseed-tiler-db:v1
8-
# build:
9-
# context: ./images/tiler-db
10-
# dockerfile: Dockerfile
11-
# ports:
12-
# - "5433:5432"
13-
# volumes:
14-
# - ./postgres-gis-data:/var/lib/postgresql/data
15-
# env_file:
16-
# - ./.env-tiler
17-
# tiler-imposm:
18-
# image: osmseed-tiler-imposm:v1
19-
# build:
20-
# context: ./images/tiler-imposm
21-
# dockerfile: Dockerfile
22-
# volumes:
23-
# - ./tiler-imposm-data:/mnt/data
24-
# depends_on:
25-
# - tiler-db
26-
# env_file:
27-
# - ./.env-tiler
28-
# command: >
29-
# /bin/bash -c "
30-
# echo Sleep for a while!;
31-
# sleep 20;
32-
# echo starting imposm!;
33-
# ./start.sh"
34-
# tiler-server:
35-
# image: osmseed-tiler-server:v1
36-
# build:
37-
# context: ./images/tiler-server
38-
# dockerfile: Dockerfile
39-
# volumes:
40-
# - ./tiler-server-data:/mnt/data
41-
# depends_on:
42-
# - tiler-db
43-
# - tiler-imposm
44-
# ports:
45-
# - "9090:9090"
46-
# command: >
47-
# /bin/bash -c "
48-
# echo Sleep for a while!;
49-
# sleep 100;
50-
# echo Starting tiles server!;
51-
# ./start.sh"
52-
#=========================================================================
53-
# OVERPASS section
54-
#=========================================================================
4+
######################################################
5+
### OSM API and Database section
6+
######################################################
7+
web:
8+
image: osmseed-web:v1
9+
build:
10+
context: ./images/web
11+
dockerfile: Dockerfile
12+
ports:
13+
- '80:80'
14+
env_file:
15+
- ./.env
16+
depends_on:
17+
- db
18+
db:
19+
image: osmseed-db:v1
20+
build:
21+
context: ./images/db
22+
dockerfile: Dockerfile
23+
ports:
24+
- '5432:5432'
25+
volumes:
26+
- ./postgres-data:/var/lib/postgresql/data
27+
env_file:
28+
- ./.env
29+
######################################################
30+
### Planet replication section
31+
######################################################
32+
planet-dump:
33+
image: osmseed-planet-dump:v1
34+
build:
35+
context: ./images/planet-dump
36+
dockerfile: Dockerfile
37+
depends_on:
38+
- db
39+
volumes:
40+
- ./planet-dump-data:/app
41+
command: >
42+
/bin/bash -c "
43+
echo Sleep the planet-dump for a while!;
44+
sleep 40;
45+
echo Creating the planet-dump!;
46+
./start.sh"
47+
env_file:
48+
- ./.env
49+
######################################################
50+
### OSM Database backup and restore section
51+
######################################################
52+
db-backup-restore:
53+
image: osmseed-backup-restore:v1
54+
build:
55+
context: ./images/backup-restore
56+
dockerfile: Dockerfile
57+
depends_on:
58+
- db
59+
command: >
60+
/bin/bash -c "
61+
echo Sleep for a while!;
62+
sleep 20;
63+
echo Building backup!;
64+
./start.sh"
65+
env_file:
66+
- ./.env
67+
######################################################
68+
### OSM minute replication files section
69+
######################################################
70+
replication-job:
71+
image: osmseed-replication-job:v1
72+
build:
73+
context: ./images/replication-job
74+
dockerfile: Dockerfile
75+
volumes:
76+
- ./replication-job:/mnt/data
77+
depends_on:
78+
- db
79+
command: >
80+
/bin/bash -c "
81+
echo Sleep the replication-job for a while!;
82+
sleep 40;
83+
echo Creating the replication-job!;
84+
./start.sh"
85+
env_file:
86+
- ./.env
87+
######################################################
88+
### OSM data restoring into the database
89+
######################################################
90+
populate-apidb:
91+
image: osmseed-populate-apidb:v1
92+
build:
93+
context: ./images/populate-apidb
94+
dockerfile: Dockerfile
95+
volumes:
96+
- ./populate-apidb-data:/app/data
97+
depends_on:
98+
- db
99+
command: >
100+
/bin/bash -c "
101+
echo Sleep for a while populate-apidb!;
102+
sleep 70s;
103+
echo Starting populate-apidb!;
104+
./start.sh"
105+
env_file:
106+
- ./.env
107+
osm-processor:
108+
image: osmseed-osm-processor:v1
109+
build:
110+
context: ./images/osm-processor
111+
dockerfile: Dockerfile
112+
env_file:
113+
- ./.env
114+
######################################################
115+
### OSM full planet replication
116+
######################################################
117+
full-history:
118+
image: osmseed-full-history:v1
119+
build:
120+
context: ./images/full-history
121+
dockerfile: Dockerfile
122+
depends_on:
123+
- web
124+
- db
125+
volumes:
126+
- ./full-history-data:/mnt/data
127+
command: >
128+
/bin/bash -c "
129+
echo Sleep full-history for a while!;
130+
sleep 40;
131+
echo Starting full-history!;
132+
./start.sh"
133+
env_file:
134+
- ./.env
135+
######################################################
136+
### Tiler server(tegola), Database and imposm section
137+
######################################################
138+
tiler-db:
139+
image: osmseed-tiler-db:v1
140+
build:
141+
context: ./images/tiler-db
142+
dockerfile: Dockerfile
143+
ports:
144+
- "5433:5432"
145+
volumes:
146+
- ./postgres-gis-data:/var/lib/postgresql/data
147+
env_file:
148+
- ./.env-tiler
149+
tiler-imposm:
150+
image: osmseed-tiler-imposm:v1
151+
build:
152+
context: ./images/tiler-imposm
153+
dockerfile: Dockerfile
154+
volumes:
155+
- ./tiler-imposm-data:/mnt/data
156+
depends_on:
157+
- tiler-db
158+
env_file:
159+
- ./.env-tiler
160+
command: >
161+
/bin/bash -c "
162+
echo Sleep for a while!;
163+
sleep 20;
164+
echo starting imposm!;
165+
./start.sh"
166+
tiler-server:
167+
image: osmseed-tiler-server:v1
168+
build:
169+
context: ./images/tiler-server
170+
dockerfile: Dockerfile
171+
volumes:
172+
- ./tiler-server-data:/mnt/data
173+
depends_on:
174+
- tiler-db
175+
- tiler-imposm
176+
ports:
177+
- "9090:9090"
178+
command: >
179+
/bin/bash -c "
180+
echo Sleep for a while!;
181+
sleep 100;
182+
echo Starting tiles server!;
183+
./start.sh"
184+
######################################################
185+
### Nominatim section
186+
######################################################
187+
nominatim-db:
188+
image: nominatim-db:v1
189+
build:
190+
context: ./images/nominatim
191+
dockerfile: Dockerfile
192+
ports:
193+
- '6432:5432'
194+
volumes:
195+
- ./nominatim-pgdata:/var/lib/postgresql/data
196+
env_file:
197+
- ./.env-nominatim
198+
command: >
199+
/bin/bash -c "sh /app/start.sh"
200+
nominatim-api:
201+
image: nominatim-api:v1
202+
build:
203+
context: ./images/nominatim
204+
dockerfile: Dockerfile
205+
ports:
206+
- '7070:8080'
207+
env_file:
208+
- ./.env-nominatim
209+
entrypoint: sh /app/startapache.sh
210+
######################################################
211+
### Overpass API section
212+
######################################################
55213
overpass-api:
56214
image: osmseed-overpass-api:v1
57215
build:
58216
context: ./images/overpass-api
59217
dockerfile: Dockerfile
60218
ports:
61-
- '80:80'
219+
- '8081:80'
62220
volumes:
63221
- ./overpass-api-db:/db
64222
env_file:

0 commit comments

Comments
 (0)