Skip to content

Commit 774207b

Browse files
author
Ruben Lopez M
authored
Merge pull request #184 from developmentseed/update/docker-compose
Update docker-compose config
2 parents 438aa37 + 7aa32ac commit 774207b

File tree

1 file changed

+160
-3
lines changed

1 file changed

+160
-3
lines changed

docker-compose.yml

Lines changed: 160 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,139 @@
11
version: '3'
22
services:
3-
#=========================================================================
4-
# OMS-SEED-TILER section
5-
#=========================================================================
3+
######################################################
4+
### OSM API and Database section
5+
######################################################
6+
web:
7+
image: osmseed-web:v1
8+
build:
9+
context: ./images/web
10+
dockerfile: Dockerfile
11+
ports:
12+
- '80:80'
13+
env_file:
14+
- ./.env
15+
depends_on:
16+
- db
17+
db:
18+
image: osmseed-db:v1
19+
build:
20+
context: ./images/db
21+
dockerfile: Dockerfile
22+
ports:
23+
- '5432:5432'
24+
volumes:
25+
- ./postgres-data:/var/lib/postgresql/data
26+
env_file:
27+
- ./.env
28+
######################################################
29+
### Planet replication section
30+
######################################################
31+
planet-dump:
32+
image: osmseed-planet-dump:v1
33+
build:
34+
context: ./images/planet-dump
35+
dockerfile: Dockerfile
36+
depends_on:
37+
- db
38+
volumes:
39+
- ./planet-dump-data:/app
40+
command: >
41+
/bin/bash -c "
42+
echo Sleep the planet-dump for a while!;
43+
sleep 40;
44+
echo Creating the planet-dump!;
45+
./start.sh"
46+
env_file:
47+
- ./.env
48+
######################################################
49+
### OSM Database backup and restore section
50+
######################################################
51+
db-backup-restore:
52+
image: osmseed-backup-restore:v1
53+
build:
54+
context: ./images/backup-restore
55+
dockerfile: Dockerfile
56+
depends_on:
57+
- db
58+
command: >
59+
/bin/bash -c "
60+
echo Sleep for a while!;
61+
sleep 20;
62+
echo Building backup!;
63+
./start.sh"
64+
env_file:
65+
- ./.env
66+
######################################################
67+
### OSM minute replication files section
68+
######################################################
69+
replication-job:
70+
image: osmseed-replication-job:v1
71+
build:
72+
context: ./images/replication-job
73+
dockerfile: Dockerfile
74+
volumes:
75+
- ./replication-job:/mnt/data
76+
depends_on:
77+
- db
78+
command: >
79+
/bin/bash -c "
80+
echo Sleep the replication-job for a while!;
81+
sleep 40;
82+
echo Creating the replication-job!;
83+
./start.sh"
84+
env_file:
85+
- ./.env
86+
######################################################
87+
### OSM data restoring into the database
88+
######################################################
89+
populate-apidb:
90+
image: osmseed-populate-apidb:v1
91+
build:
92+
context: ./images/populate-apidb
93+
dockerfile: Dockerfile
94+
volumes:
95+
- ./populate-apidb-data:/app/data
96+
depends_on:
97+
- db
98+
command: >
99+
/bin/bash -c "
100+
echo Sleep for a while populate-apidb!;
101+
sleep 70s;
102+
echo Starting populate-apidb!;
103+
./start.sh"
104+
env_file:
105+
- ./.env
106+
osm-processor:
107+
image: osmseed-osm-processor:v1
108+
build:
109+
context: ./images/osm-processor
110+
dockerfile: Dockerfile
111+
env_file:
112+
- ./.env
113+
######################################################
114+
### OSM full planet replication
115+
######################################################
116+
full-history:
117+
image: osmseed-full-history:v1
118+
build:
119+
context: ./images/full-history
120+
dockerfile: Dockerfile
121+
depends_on:
122+
- web
123+
- db
124+
volumes:
125+
- ./full-history-data:/mnt/data
126+
command: >
127+
/bin/bash -c "
128+
echo Sleep full-history for a while!;
129+
sleep 40;
130+
echo Starting full-history!;
131+
./start.sh"
132+
env_file:
133+
- ./.env
134+
######################################################
135+
### Tiler server(tegola), Database and imposm section
136+
######################################################
6137
tiler-db:
7138
image: osmseed-tiler-db:v1
8139
build:
@@ -49,3 +180,29 @@ services:
49180
sleep 100;
50181
echo Starting tiles server!;
51182
./start.sh"
183+
######################################################
184+
### Nominatim section
185+
######################################################
186+
nominatim-db:
187+
image: nominatim-db:v1
188+
build:
189+
context: ./images/nominatim
190+
dockerfile: Dockerfile
191+
ports:
192+
- '6432:5432'
193+
volumes:
194+
- ./nominatim-pgdata:/var/lib/postgresql/data
195+
env_file:
196+
- ./.env-nominatim
197+
command: >
198+
/bin/bash -c "sh /app/start.sh"
199+
nominatim-api:
200+
image: nominatim-api:v1
201+
build:
202+
context: ./images/nominatim
203+
dockerfile: Dockerfile
204+
ports:
205+
- '7070:8080'
206+
env_file:
207+
- ./.env-nominatim
208+
entrypoint: sh /app/startapache.sh

0 commit comments

Comments
 (0)