-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
43 lines (43 loc) · 1.4 KB
/
docker-compose.yaml
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
services:
static:
container_name: static-content
image: nginx
ports:
- 8765:80
volumes:
- ./volumes/static:/usr/share/nginx/html
bikehopper-web-app:
container_name: bikehopper-web-app
restart: unless-stopped
env_file:
- path: ./.env
required: true
environment:
FILE_SERVICE_NAME: bikehopper-fit-file-server-svc
PORT: "${WEB_APP_CONTAINER_PORT}"
HOSTNAME: svc.cluster.local
PHOTON_SERVICE_NAME: photon:2322
GRAPHHOPPER_SERVICE_NAME: graphhopper:8989
NODE_ENV: development
NOMINATIM_SERVICE_NAME: nominatim
NAMESPACE: "${NAMESPACE}"
GTFS_REALTIME_TOKEN: "${GTFS_REALTIME_TOKEN}"
WEB_APP_GEO_CONFIG_FOLDER_CONTAINER_PATH: "${WEB_APP_GEO_CONFIG_FOLDER_CONTAINER_PATH}"
WEB_APP_REGION_CONFIG_PATH: "${WEB_APP_REGION_CONFIG_PATH}"
healthcheck:
test: curl -f --silent http://localhost:${WEB_APP_CONTAINER_PORT}/health
retries: 20
start_period: 5s
timeout: 2s
image: ghcr.io/bikehopper/bikehopper-web-app:v1.1.11
build:
context: .
dockerfile: ./Dockerfile.dev
labels:
- "app=bikehopper-web-app"
- "traefik.enable=true"
- "traefik.http.routers.bikehopper-web-app.rule=Host(`api.app.localhost`)"
- "traefik.http.routers.bikehopper-web-app.tls=true"
ports:
- 9229:9229
- ${WEB_APP_CONTAINER_PORT}:${WEB_APP_CONTAINER_PORT}