Skip to content

Commit e9ee924

Browse files
author
Rub21
committed
Remove env files and update docker-compose
1 parent bd6de90 commit e9ee924

File tree

6 files changed

+172
-236
lines changed

6 files changed

+172
-236
lines changed

docker-compose.yml

Lines changed: 156 additions & 144 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
version: '3'
22
services:
3-
######################################################
4-
### OSM API and Database section
5-
######################################################
3+
####################################################
4+
# OSM API and Database section
5+
####################################################
66
db:
77
image: osmseed-db:v1
88
build:
@@ -26,17 +26,17 @@ services:
2626
- ./envs/.env.db
2727
depends_on:
2828
- db
29-
# ######################################################
30-
# ### OSM processor and also use this image as base for other containers
31-
# ######################################################
29+
######################################################
30+
### OSM processor and also use this image as base for other containers
31+
######################################################
3232
osm-processor:
3333
image: osmseed-osm-processor:v1
3434
build:
3535
context: ./images/osm-processor
3636
dockerfile: Dockerfile
37-
# ######################################################
38-
# ### Planet replication section
39-
# ######################################################
37+
######################################################
38+
### Planet replication section
39+
######################################################
4040
planet-dump:
4141
image: osmseed-planet-dump:v1
4242
build:
@@ -56,9 +56,9 @@ services:
5656
- ./envs/.env.cloudprovider
5757
depends_on:
5858
- db
59-
######################################################
60-
### OSM Database backup and restore section
61-
######################################################
59+
#####################################################
60+
## OSM Database backup and restore section
61+
#####################################################
6262
db-backup-restore:
6363
image: osmseed-backup-restore:v1
6464
build:
@@ -78,9 +78,9 @@ services:
7878
- ./envs/.env.cloudprovider
7979
depends_on:
8080
- db
81-
# ######################################################
82-
# ### OSM minute replication files section
83-
# ######################################################
81+
######################################################
82+
### OSM minute replication files section
83+
######################################################
8484
replication-job:
8585
image: osmseed-replication-job:v1
8686
build:
@@ -93,16 +93,17 @@ services:
9393
echo Sleep the replication-job for 1 minute;
9494
sleep 1m;
9595
echo Creating the replication files!;
96-
/start.sh"
96+
/start.sh
97+
"
9798
env_file:
9899
- ./envs/.env.db
99100
- ./envs/.env.replication-job
100101
- ./envs/.env.cloudprovider
101102
depends_on:
102103
- db
103-
######################################################
104-
### OSM full planet replication
105-
######################################################
104+
#####################################################
105+
## OSM full planet replication
106+
#####################################################
106107
full-history:
107108
image: osmseed-full-history:v1
108109
build:
@@ -122,147 +123,158 @@ services:
122123
- ./envs/.env.cloudprovider
123124
depends_on:
124125
- db
125-
# ######################################################
126-
# ### Populate apidb from PBF file
127-
# ######################################################
126+
######################################################
127+
### Populate apidb from PBF file
128+
######################################################
128129
populate-apidb:
129130
image: osmseed-populate-apidb:v1
130131
build:
131132
context: ./images/populate-apidb
132133
dockerfile: Dockerfile
133134
volumes:
134135
- ./data/populate-apidb-data:/mnt/data
135-
depends_on:
136-
- db
137136
command: >
138137
/bin/bash -c "
139-
echo Sleep for a while populate-apidb!;
140-
sleep 4m;
141-
echo Starting populate-apidb!;
142-
/start.sh"
138+
echo Sleep for a while populate-apidb!;
139+
sleep 4m;
140+
echo Starting populate-apidb!;
141+
/start.sh
142+
"
143143
env_file:
144144
- ./envs/.env.db
145145
- ./envs/.env.populate-apidb
146146
# ######################################################
147-
# ### Tiler server(tegola), Database and imposm section
147+
# ### Tiler DB
148148
# ######################################################
149-
# tiler-db:
150-
# image: osmseed-tiler-db:v1
151-
# build:
152-
# context: ./images/tiler-db
153-
# dockerfile: Dockerfile
154-
# ports:
155-
# - "5433:5432"
156-
# volumes:
157-
# - ./postgres-gis-data:/var/lib/postgresql/data
158-
# env_file:
159-
# - ./.env-tiler
160-
# tiler-imposm:
161-
# image: osmseed-tiler-imposm:v1
162-
# build:
163-
# context: ./images/tiler-imposm
164-
# dockerfile: Dockerfile
165-
# volumes:
166-
# - ./tiler-imposm-data:/mnt/data
167-
# depends_on:
168-
# - tiler-db
169-
# env_file:
170-
# - ./.env-tiler
171-
# command: >
172-
# /bin/bash -c "
173-
# echo Sleep for a while!;
174-
# sleep 20;
175-
# echo starting imposm!;
176-
# ./start.sh"
177-
# tiler-server:
178-
# image: osmseed-tiler-server:v1
179-
# build:
180-
# context: ./images/tiler-server
181-
# dockerfile: Dockerfile
182-
# env_file:
183-
# - ./.env-tiler
184-
# volumes:
185-
# - ./tiler-server-data:/mnt/data
186-
# depends_on:
187-
# - tiler-db
188-
# - tiler-imposm
189-
# ports:
190-
# - "9090:9090"
191-
# command: >
192-
# /bin/bash -c "
193-
# echo Sleep for a while!;
194-
# sleep 100;
195-
# echo Starting tiles server!;
196-
# ./start.sh"
149+
tiler-db:
150+
image: osmseed-tiler-db:v1
151+
build:
152+
context: ./images/tiler-db
153+
dockerfile: Dockerfile
154+
ports:
155+
- "5433:5432"
156+
volumes:
157+
- ./data/tiler-db-data:/var/lib/postgresql/data
158+
env_file:
159+
- ./envs/.env.tiler-db
197160
# ######################################################
198-
# ### Nominatim section
161+
# ### Tiler imposm for importing data
199162
# ######################################################
200-
# nominatim-db:
201-
# image: nominatim-db:v1
202-
# build:
203-
# context: ./images/nominatim
204-
# dockerfile: Dockerfile
205-
# ports:
206-
# - '6432:5432'
207-
# volumes:
208-
# - ./nominatim-pgdata:/var/lib/postgresql/data
209-
# env_file:
210-
# - ./.env-nominatim
211-
# command: >
212-
# /bin/bash -c "sh /app/start.sh"
213-
# nominatim-api:
214-
# image: nominatim-api:v1
215-
# build:
216-
# context: ./images/nominatim
217-
# dockerfile: Dockerfile
218-
# ports:
219-
# - '7070:8080'
220-
# env_file:
221-
# - ./.env-nominatim
222-
# entrypoint: sh /app/startapache.sh
163+
tiler-imposm:
164+
image: osmseed-tiler-imposm:v1
165+
build:
166+
context: ./images/tiler-imposm
167+
dockerfile: Dockerfile
168+
volumes:
169+
- ./data/tiler-imposm-data:/mnt/data
170+
depends_on:
171+
- tiler-db
172+
command: >
173+
/bin/bash -c "
174+
echo starting imposm!;
175+
sleep 1m;
176+
./start.sh;
177+
"
178+
env_file:
179+
- ./envs/.env.tiler-db
180+
- ./envs/.env.tiler-imposm
223181
# ######################################################
224-
# ### Overpass API section
182+
# ### Tiler imposm for importing data
225183
# ######################################################
226-
# overpass-api:
227-
# image: osmseed-overpass-api:v1
228-
# build:
229-
# context: ./images/overpass-api
230-
# dockerfile: Dockerfile
231-
# ports:
232-
# - '8081:80'
233-
# volumes:
234-
# - ./overpass-api-db:/db
235-
# env_file:
236-
# - ./.env-overpass
184+
tiler-server:
185+
image: osmseed-tiler-server:v1
186+
build:
187+
context: ./images/tiler-server
188+
dockerfile: Dockerfile
189+
volumes:
190+
- ./data/tiler-server-data:/mnt/data
191+
depends_on:
192+
- tiler-db
193+
- tiler-imposm
194+
ports:
195+
- "9090:9090"
196+
command: >
197+
/bin/bash -c "
198+
echo Starting tiles server!;
199+
sleep 2m;
200+
./start.sh;
201+
"
202+
env_file:
203+
- ./envs/.env.tiler-db
204+
- ./envs/.env.tiler-server
205+
#####################################################
206+
## Nominatim DB-API section
207+
#####################################################
208+
nominatim-db:
209+
image: nominatim-db:v1
210+
build:
211+
context: ./images/nominatim
212+
dockerfile: Dockerfile
213+
ports:
214+
- '5434:5432'
215+
volumes:
216+
- ./data/nominatim-db-data:/var/lib/postgresql/data
217+
command: >
218+
/bin/bash -c "
219+
sh /app/start.sh
220+
"
221+
env_file:
222+
- ./envs/.env.nominatim
223+
nominatim-api:
224+
image: nominatim-api:v1
225+
build:
226+
context: ./images/nominatim
227+
dockerfile: Dockerfile
228+
ports:
229+
- '7070:8080'
230+
env_file:
231+
- ./.env.nominatim
232+
entrypoint: sh /app/startapache.sh
233+
env_file:
234+
- ./envs/.env.nominatim
235+
######################################################
236+
### Overpass API section
237+
######################################################
238+
overpass-api:
239+
image: osmseed-overpass-api:v1
240+
build:
241+
context: ./images/overpass-api
242+
dockerfile: Dockerfile
243+
ports:
244+
- '8081:80'
245+
volumes:
246+
- ./data/overpass-api-db:/db
247+
env_file:
248+
- ./envs/.env.overpass
237249

238-
# ######################################################
239-
# ### Tasking Manager section
240-
# ######################################################
241-
# tasking-manager-api:
242-
# image: osmseed-tasking-manager-api:v1
243-
# build:
244-
# context: ./images/tasking-manager-api
245-
# dockerfile: Dockerfile
246-
# ports:
247-
# - '5000:5000'
248-
# volumes:
249-
# - ./tasking-manager-api-db:/db
250-
# env_file:
251-
# - ./.env-tasking-manager
252-
# # #####################################################
253-
# # ## Taginfo section
254-
# # #####################################################
255-
# taginfo:
256-
# image: osmseed-taginfo:v1
257-
# build:
258-
# context: ./images/taginfo
259-
# dockerfile: Dockerfile
260-
# ports:
261-
# - '4567:80'
262-
# volumes:
263-
# - ./taginfo-data:/apps/data/
264-
# env_file:
265-
# - ./.env-taginfo
266-
# command: >
267-
# /bin/bash -c "
268-
# ./start.sh"
250+
######################################################
251+
### Tasking Manager section
252+
######################################################
253+
tasking-manager-api:
254+
image: osmseed-tasking-manager-api:v1
255+
build:
256+
context: ./images/tasking-manager-api
257+
dockerfile: Dockerfile
258+
ports:
259+
- '5000:5000'
260+
volumes:
261+
- ./data/tasking-manager-api-db:/db
262+
env_file:
263+
- ./envs/.env.tasking-manager
264+
# #####################################################
265+
# ## Taginfo section
266+
# #####################################################
267+
taginfo:
268+
image: osmseed-taginfo:v1
269+
build:
270+
context: ./images/taginfo
271+
dockerfile: Dockerfile
272+
ports:
273+
- '4567:80'
274+
volumes:
275+
- ./data/taginfo-data:/apps/data/
276+
command: >
277+
/bin/bash -c "
278+
./start.sh"
279+
env_file:
280+
- ./envs/.env.taginfo

envs/.env-nominatim.example

Lines changed: 0 additions & 11 deletions
This file was deleted.

envs/.env-overpass.example

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)