forked from openmove/odh-mentor-otp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
169 lines (157 loc) · 4.24 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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
version: '3'
networks:
default:
driver: bridge
services:
journey:
container_name: openmove-journey
ports:
- "80:80"
image: openmove_journey:latest
build:
context: ./
dockerfile: infrastructure/docker/journey/Dockerfile
args:
#hostnames from browser point of view
API_HOST: http://localhost
API_PATH: /otp/routers/openmove
API_PORT: 8080
GEOCODER_BASEURL: http://localhost:8088/v1
PARKING_BASEURL: http://localhost:8092
DRT_BASEURL: http://localhost:8095
CHARGER_BASEURL: http://localhost:8093
CARSHARING_BASEURL: http://localhost:8091
# debug
#API_HOST: https://otp.opendatahub.testingmachine.eu
#API_PORT: 443
#API_PATH: /otp/routers/openmove
#GEOCODER_BASEURL: https://geocoder.otp.opendatahub.testingmachine.eu/v1
#PARKING_BASEURL: https://parking.otp.opendatahub.testingmachine.eu
#CHARGER_BASEURL: https://charger.otp.opendatahub.testingmachine.eu
#CARSHARING_BASEURL: https://carsharing.otp.opendatahub.testingmachine.eu
depends_on:
- geocoder
- otp
- parking
- charger
- carsharing
geocoder:
container_name: openmove-geocoder
ports:
- "8088:8088"
image: openmove_geocoder:latest
build:
context: ./
dockerfile: infrastructure/docker/geocoder/Dockerfile
#TODO ONLY FOR DEBUG
#volumes:
# - ./config.yml:/home/config.yml
# - ./index.js:/home/index.js
environment:
API_HOST: otp
API_PATH: /otp/routers/openmove
API_PORT: 8080
HERE_APPID: ''
HERE_APPCODE: ''
HERE_APIKEY: ''
gbfs:
container_name: openmove-gbfs
ports:
- "8089:8089"
image: openmove_gbfs:latest
build:
context: ./
dockerfile: infrastructure/docker/gbfs/Dockerfile
carsharing:
container_name: openmove-carsharing
ports:
- "8091:8091"
image: openmove_carsharing:latest
build:
context: ./
dockerfile: infrastructure/docker/carsharing/Dockerfile
parking:
container_name: openmove-parking
ports:
- "8092:8092"
image: openmove_parking:latest
build:
context: ./
dockerfile: infrastructure/docker/parking/Dockerfile
charger:
container_name: openmove-charger
ports:
- "8093:8093"
image: openmove_charger:latest
build:
context: ./
dockerfile: infrastructure/docker/charger/Dockerfile
# traffic:
# container_name: openmove-traffic
# ports:
# - "8094:8094"
# image: openmove_traffic:latest
# build:
# context: ./
# dockerfile: infrastructure/docker/traffic/Dockerfile
drt:
container_name: openmove-drt
ports:
- "8095:8095"
image: openmove_drt:latest
build:
context: ./
dockerfile: infrastructure/docker/drt/Dockerfile
otp:
container_name: openmove-otp
ports:
- "8080:8080"
image: openmove_otp:latest
build:
context: ./
dockerfile: infrastructure/docker/otp/Dockerfile
environment:
- JAVA_MX=4G
- BUILD_GRAPH=False
- OFFICIAL=False
- GTFS_FILE=latestGTFS.zip
- GTFS_URL=ftp://ftp.sta.bz.it/gtfs/google_transit_shp.zip
- GTFS_URL_UPDATETIME=0 * * * *
- GTFS_URL_UPDATEHOOK=''
volumes:
- /opt/odh-mentor-otp/:/data/
depends_on:
#TODO - drt
- gbfs
- parking
- charger
- carsharing
build:
container_name: openmove-build
ports:
- "8090:8080"
restart: "no"
image: openmove_otp:latest
build:
context: ./
dockerfile: infrastructure/docker/otp/Dockerfile
environment:
- JAVA_MX=10G
- BUILD_GRAPH=True
- OFFICIAL=False
- DOWNLOAD_DATA=False
- BACKUP_GRAPH=False
- GTFS_FILE=latestGTFS.zip
- UPDATERS=True
- GBFS_HOST=http://gbfs:8089
- GBFS_VERSION=1
#- GBFS_VERSION=2.1
- GTFS_RT_URL=https://efa.sta.bz.it/gtfs-r/
- GTFS_FEED_ID=1
- CARSHARING_HOST=http://carsharing:8091
- PARKING_HOST=http://parking:8092
volumes:
- /opt/odh-mentor-otp/:/data/
#- infrastructure/docker/docker-entrypoint.sh:/docker-entrypoint.sh
#uncomment to test script
restart: "no"