-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
142 lines (128 loc) · 3.85 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
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"
# ----- otp ------------------------------------------------------------------
otp-builder:
build: ./nextmoov-smop-otp/builder
volumes:
- ./data:/data
otp:
build: ./nextmoov-smop-otp/otp
ports:
- "8081:8080"
volumes:
- ./data:/data
labels:
- "traefik.enable=true"
- "traefik.port=8080"
- "traefik.http.routers.otp-api.entrypoints=web"
- "traefik.http.routers.otp-api.rule=PathPrefix(`/otp`)"
# ----- autocomplete-transit -------------------------------------------------
autocomplete-transit-elastic:
image: elasticsearch:6.4.3
environment:
- discovery.type=single-node
#ports:
#- "9200:9200"
volumes:
- autocomplete-transit-elastic:/usr/share/elasticsearch/data
autocomplete-transit-importer:
build: ./nextmoov-smop-autocomplete-transit/importer
depends_on:
- autocomplete-transit-elastic
volumes:
- ./data:/app/data
autocomplete-transit-api:
build: ./nextmoov-smop-autocomplete-transit/api
depends_on:
- autocomplete-transit-elastic
labels:
- "traefik.enable=true"
- "traefik.port=8080"
- "traefik.http.routers.autocomplete-transit-api.entrypoints=web"
- "traefik.http.routers.autocomplete-transit-api.rule=PathPrefix(`/autocomplete/station`)"
#ports:
#- "8082:80"
# ----- maps -----------------------------------------------------------------
maps-postgis:
build: ./nextmoov-smop-maps/postgis
#ports:
#- "5432:5432"
volumes:
- maps-postgis:/var/lib/postgresql/data
maps-server:
build: ./nextmoov-smop-maps/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: ./nextmoov-smop-maps/importer
depends_on:
- maps-postgis
volumes:
- maps-importer:/app/tmp
# ----- autocomplete addr ----------------------------------------------------
autocomplete-addr-postgis:
build: ./nextmoov-smop-autocomplete-addr/postgis
volumes:
- autocomplete-addr-postgis:/var/lib/postgresql/data
#ports:
#- "5432:5432"
autocomplete-addr-elastic:
image: elasticsearch:6.4.3
environment:
- discovery.type=single-node
volumes:
- autocomplete-addr-elastic:/usr/share/elasticsearch/data
#ports:
#- "9200:9200"
autocomplete-addr-importer:
build: ./nextmoov-smop-autocomplete-addr/importer
depends_on:
- autocomplete-addr-postgis
- autocomplete-addr-elastic
volumes:
- autocomplete-addr-importer:/app/tmp
autocomplete-addr-api:
build: ./nextmoov-smop-autocomplete-addr/api
depends_on:
- autocomplete-addr-importer
- autocomplete-addr-postgis
- autocomplete-addr-elastic
labels:
- "traefik.enable=true"
- "traefik.port=8080"
- "traefik.http.routers.autocomplete-addr-api.entrypoints=web"
- "traefik.http.routers.autocomplete-addr-api.rule=PathPrefix(`/autocomplete/address`)"
#ports:
#- "8084:80"
volumes:
autocomplete-transit-elastic:
autocomplete-addr-postgis:
autocomplete-addr-elastic:
autocomplete-addr-importer:
maps-importer:
maps-postgis:
maps-server: