-
Notifications
You must be signed in to change notification settings - Fork 0
/
.env
255 lines (224 loc) · 9.62 KB
/
.env
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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
#
# General
# =======
#
NAME=journey-planner
BUILD_NAME=build
# The following 4 variables define a rectangular geographical area.
# That bounding box is used to crop the OSM region which results in a
# - smaller background map
# - smaller geocoder database
# - smaller navigation graph
# - smaller map overlays
#
# The given coordinates surround all public transport stops of the VGN,
# a German transport association.
#
# They were generated from the GTFS feed with a python script.
# We will add that script to this project in the future.
#
# Until then, the values can be determined e.g. by using
# https://boundingbox.klokantech.com/
# Select the desired area on the map and then click on "Copy & Paste CSV".
MIN_LON=10.011636032586688
MAX_LON=12.223993889052613
MIN_LAT=48.70792025947608
MAX_LAT=50.25793688217101
# Based on this value, Digitransit UI limits how far users can zoom out of the map.
# We suggest using a value that when zoomed out to this level,
# the whole area coverd by the public transit source is visible.
#
# For larger regions, use a smaller value to allow zooming further out of the map.
#
# To get a feel for the effect of this value, you can open osm.org.
# The third last value separated `/` is the zoom level:
# https://www.openstreetmap.org/#map=8/49.443/11.096
MIN_ZOOM=8
# Used to
# - determine the correct times of time-restricted entities in the OSM dataset by OpenTripPlanner
# - display correct time in Digitransit-UI
TIMEZONE=Europe/Berlin
# URL to GTFS .zip file.
# Alternatively, path to local .zip file relative to ./gtfs-data directory.
#
# The example URL points to the GTFS dataset of the VGN.
GTFS_URL=https://www.vgn.de/opendata/GTFS.zip
#GTFS_URL=gtfs.zip
GTFS_CREDITS='[{"license":"Creative Commons Namensnennung 3.0 (CC BY 3.0 DE)","text":"Public transit timetable data by VGN – Verkehrsverbund Großraum Nürnberg GmbH. https://vgn.de"}]'
# If your GTFS dataset does not contain the bikes_allowed column (or if it has the column but with many undefined values),
# you can add it with its values set to `true`.
# To do this, set at least one parameter below.
#
# Otherwise, leave it empty (`GTFS_MODIFICATION_PARAM=`).
#
# For details, which parameters are possible, see
# https://github.com/langbein-daniel/gtfs-modifications#usage
GTFS_MODIFICATION_PARAM='--bikes-allowed True --escape-double-quotes routes.txt'
# Set this to `GTFS_FILTER=true`, to filter the GTFS file by bounding box.
# Leave the variable empty (`GTFS_FILTER=`) to disable.
GTFS_FILTER=
# URL to .osm.pbf region from geofabrik.de server.
# Alternatively, path to local .osm.pbf file relative to ./osm-excerpt directory.
#
# Please pick a region that covers your bounding box.
#
# The Germany OSM extract covers (almost) the complete bounding box of the VGN.
OSM_PBF_URL=https://download.geofabrik.de/europe/germany-latest.osm.pbf
#OSM_PBF_URL=region.osm.pbf
# If the built Docker images shall be published
# to a Docker container registry,
# then adjust the following two values.
#
# URL to user of a Docker container registry
DOCKER_REGISTRY_URL=docker.io/biketripplanner/
# The images of the individual services are tagged with
# ${DOCKER_REGISTRY_URL}${SERVICE}:${DOCKER_IMAGE_TAG}
# and
# ${DOCKER_REGISTRY_URL}${SERVICE}:${DOCKER_IMAGE_TAG}-${DATE}
#
# Use e.g. the name of the area you configured
# via the bounding box or the (main) transport
# association from the GTFS dataset.
#
# By tagging the images like this you can easily switch between
# multiple published areas or transport associations.
#
# In our example this transport association is abbreviated with VGN.
DOCKER_IMAGE_TAG=VGN
#
# Healthcheck
# ===========
#
# The values in this section are used by the container healthchecks.
# We use them to (I) detect if the services are running and (II)
# test if they use the correct data sources.
#
# For the latter we need to provide some information that is
# specific to the configured area and transport association.
#
# Name of one agency of the GTFS dataset.
# As in gtfs.zip > agency.txt > agency_name.
HEALTHCHECK_OPENTRIPPLANNER=VGN
# We imported GTFS data into two custom layers, stop and station.
# If these layers don't exist, something is wrong!
# To check this, we use the following healthcheck:
HEALTHCHECK_API_REQUEST=localhost:4000/v1/search?text=N%C3%BCrnberg&lang=en&layers=stop,station
# Name of one station from the GTFS dataset.
# As in gtfs.zip > stops.txt > stop_name.
HEALTHCHECK_API_RESPONSE='"name":"Nürnberg Hbf"'
# An address inside the OSM data and bounding box.
HEALTHCHECK_LIBPOSTAL_REQUEST=localhost:4400/parse?address=Bahnhofsplatz%209,%2090443%20N%C3%BCrnberg,%20Germany
# A parsed part of the above address.
HEALTHCHECK_LIBPOSTAL_RESPONSE='"label":"city","value":"nürnberg"'
# For this service there are multiple possible healthcheck URLs:
# http://localhost:4100/parser/search?text=n%C3%BCrnberg
# http://localhost:4100/parser/findbyid?ids=101905935
# http://localhost:4100/parser/query?text=n%C3%BCrnberg
# http://localhost:4100/parser/tokenize?text=n%C3%BCrnberg
# http://localhost:4100/parser/search?text=nürnberg&lang=rus
# One of them is enough.
#
# E.g. name of a city.
HEALTHCHECK_PLACEHOLDER_REQUEST=localhost:4100/parser/search?text=n%C3%BCrnberg
HEALTHCHECK_PLACEHOLDER_RESPONSE='"name":"Nürnberg"'
# Coordinates and a nearby address.
HEALTHCHECK_INTERPOLATION_REQUEST=localhost:4300/search/geojson?lat=49.44627&lon=11.08221&number=9&street=bahnhofsplatz
HEALTHCHECK_INTERPOLATION_RESPONSE='"type":"exact"'
# Coordinate (LON/LAT).
HEALTHCHECK_PIP_REQUEST=localhost:4200/11.08245/49.44511
# A locality/city/country containing the above coordinate.
HEALTHCHECK_PIP_RESPONSE=Nürnberg
#
# Tileserver GL
# =============
#
# No need to change these values.
#
# URL to map style git repository. Alternativey: Name of directory located inside ./tileserver-gl.
MAP_STYLE_URL=https://github.com/langbein-daniel/cyclo-bright-gl-style.git
#
# OpenTripPlanner
# ===============
#
# You may need to increase these values
# depending on the size of your bounding box
# and GTFS data.
#
OTP_OSM_TAGS='nwar/amenity=bicycle_parking nwar/highway nwar/public_transport=platform nwar/railway=platform nwar/park_ride=yes nwar/type=restriction nwar/type=route'
# Used during build.
JAVA_BUILD_OPTS=-Xmx10G
# Used during runtime.
# build-config.json vs build-config-lightweigt.json:
# - docker stats:
# - 5.1 GB RAM
# - 4.4 GB RAM
# - Docker image size:
# - 1.2 GB
# - 0.85 GB
JAVA_OPTS=-Xmx8G
#
# Pelias
# ======
#
# Two-digit country code of the country surrounding the bounding box.
# Leave empty (`COUNTRY_CODE=`) if your area intersects multiple countries.
# For details, see ./pelias/README.md section "Country code".
COUNTRY_CODE=DE
# One or more Who's On First IDs of geographical areas,
# e.g. the country surrounding your bounding box.
# Can be left empty (`WOF_IDS=`) if a COUNTRY_CODE is given.
# For details, see ./pelias/README.md section "Identifiers".
#
# It would be possible to limit the Who's On First data region
# to a smaller part of Germany covering the area of the VGN.
# We could e.g. use the IDs of the administrative regions ("neighborhoods")
# Upper Franconia (404227583), Middle Franconia (404227565), etc.
# But we would then also need to make sure that we don't miss
# some parts of the area.
# Therefore, we rather import whole Germany.
WOF_IDS=
# Germany
# WOF_IDS=["85633111"]
# Germany and Austria
# WOF_IDS=["85633111","85632785"]
PELIAS_BUILD_DIR=./pelias
#
# Digitransit-UI
# ==============
#
# JSON array.
DATA_SOURCES_PARAGRAPHS='["Map data from OpenStreetMap. This includes, among others, roads, bicycle and car parking, addresses, public transit stops and public transit routes. <a href=\"https://osm.org/copyright\">https://osm.org/copyright</a>","Public transit timetable data by VGN – Verkehrsverbund Großraum Nürnberg GmbH. <a href=\"https://vgn.de\">https://vgn.de</a>","Produced using Copernicus data and information funded by the European Union - EU-DEM layers."]'
# In milliseconds.
OTP_TIMEOUT=30000
#
# Docker image versions
# =====================
#
# No need to change these values.
#
# Git repositories that contain a Dockerfile.
# Alternatively: Local path to folder containing a Dockerfile.
DOCKERFILE_TILEMAKER=github.com/systemed/tilemaker
DOCKERFILE_GTFS_MODIFICATIONS=github.com/langbein-daniel/gtfs-modifications#main
DOCKERFILE_DEM_DATA=github.com/langbein-daniel/dem-download#main
DOCKERFILE_DIGITRANSIT_UI=github.com/langbein-daniel/digitransit-ui#v3-btp
# URLs to Git repositories that contain a Dockerfile.
DOCKERFILE_PELIAS_GTFS=https://github.com/HSLdevcom/pelias-gtfs
# Docker image tags.
IMAGE_ALPINE=registry.ipv6.docker.com/library/alpine
IMAGE_DEBIAN=registry.ipv6.docker.com/library/debian:stable-slim
IMAGE_GO=registry.ipv6.docker.com/library/golang
IMAGE_R_BASE=registry.ipv6.docker.com/library/r-base
IMAGE_TILESERVER_GL=registry.ipv6.docker.com/maptiler/tileserver-gl
IMAGE_OPENTRIPPLANNER=registry.ipv6.docker.com/opentripplanner/opentripplanner
IMAGE_PELIAS_BASE=registry.ipv6.docker.com/pelias/baseimage:master
IMAGE_PELIAS_OPENSTREETMAP=registry.ipv6.docker.com/pelias/openstreetmap:master
IMAGE_PELIAS_POLYLINES=registry.ipv6.docker.com/pelias/polylines:master
IMAGE_PELIAS_WHOSONFIRST=registry.ipv6.docker.com/pelias/whosonfirst:master
IMAGE_PELIAS_SCHEMA=registry.ipv6.docker.com/pelias/schema:master
IMAGE_PELIAS_LIBPOSTAL=registry.ipv6.docker.com/pelias/libpostal-service
IMAGE_PELIAS_API=registry.ipv6.docker.com/pelias/api:master
IMAGE_PELIAS_PLACEHOLDER=registry.ipv6.docker.com/pelias/placeholder:master
IMAGE_PELIAS_INTERPOLATION=registry.ipv6.docker.com/pelias/interpolation:master
IMAGE_PELIAS_PIP=registry.ipv6.docker.com/pelias/pip-service:master
IMAGE_PELIAS_ELASTICSEARCH=registry.ipv6.docker.com/pelias/elasticsearch:7.16.1