-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
50 lines (44 loc) · 1.17 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
version: "2"
services:
tegola:
image: debian:stable-slim
network_mode: service:net
working_dir: /src
entrypoint: /bin/sh -c "/src/generate_config.sh && /src/tegola serve --config /src/config.toml"
volumes:
- ".:/src" # for tegola binary and config.toml
db:
image: postgis/postgis:11-2.5
network_mode: service:net
environment:
POSTGRES_DBNAME: osm
POSTGRES_USER: osm
POSTGRES_PASSWORD: osm
volumes:
- ".:/src:ro"
- "/var/lib/postgresql"
es:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.8.9
network_mode: service:net
environment:
discovery.type: single-node
http.port: 9500
volumes:
- "/usr/share/elasticsearch/data"
web:
image: nginx:stable
network_mode: service:net
volumes:
- ".:/src:ro"
- "./nginx.conf:/etc/nginx/conf.d/openmap.conf:ro"
maputnik:
image: maputnik/editor:latest
network_mode: service:net
net:
image: debian:stable-slim
entrypoint: ["tail", "-f", "/dev/null"]
ports:
- "5432:5432" # postgresql
- "8080:8080" # web -- nginx
- "8888:8888" # maputnik
- "9500:9500" # elastic