-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
52 lines (47 loc) · 1.19 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
version: '3.3'
services:
# ----- reverse-proxy --------------------------------------------------------
traefik:
image: "traefik:2.0"
command:
#- "--log.level=DEBUG"
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
ports:
- "8080:80"
- "9080:8080"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
# ----- maps -----------------------------------------------------------------
maps-postgis:
build: ./postgis
#ports:
#- "5432:5432"
volumes:
- maps-postgis:/var/lib/postgresql/data
maps-server:
build: ./server
depends_on:
- maps-importer
- maps-postgis
volumes:
- maps-server:/app/cache
labels:
- "traefik.enable=true"
- "traefik.port=8080"
- "traefik.http.routers.maps-server.entrypoints=web"
- "traefik.http.routers.maps-server.rule=PathPrefix(`/tiles`)"
#ports:
#- "8083:80"
maps-importer:
build: ./importer
depends_on:
- maps-postgis
volumes:
- maps-importer:/app/tmp
volumes:
maps-importer:
maps-postgis:
maps-server: