-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
56 lines (51 loc) · 1.34 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
version: "3"
services:
postgres:
image: "openmaptiles/postgis:2.9"
ports:
- 54325:5432
env_file: docker-postgres-env
api:
build: ./api/
volumes:
- ./api:/api
depends_on:
- postgres
ports:
- 5000:5000
env_file: docker-postgres-env
importer:
image: openmaptiles/import-osm
env_file: docker-postgres-env
volumes:
- ./imposm/import/:/import
- ./imposm/vapourtrail_mapping.yml:/mapping/mapping.yaml
- ./imposm/post-process-internal.sql:/mapping/post-process-internal.sql
- ./imposm/post-process-display.sql:/mapping/post-process-display.sql
- ./imposm/helpers.sql:/mapping/helpers.sql
- ./imposm/run_importer.sh:/mapping/run_importer.sh
- ./imposm/dump_objects_list.sh:/mapping/dump_objects_list.sh
depends_on:
- postgres
entrypoint: /bin/bash
command: "/mapping/run_importer.sh"
t-rex:
image: sourcepole/t-rex
volumes:
- ./t-rex/trex.toml:/config/config.toml
- ./t-rex/cache:/srv/mvtcache
depends_on:
- postgres
ports:
- 6767:6767
entrypoint: /usr/bin/t_rex serve -c /config/config.toml
web:
image: nginx:alpine
volumes:
- ./web/:/usr/share/nginx/html/
- ./web/nginx.vh.conf:/etc/nginx/conf.d/default.conf
depends_on:
- t-rex
- api
ports:
- 8082:80