-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
138 lines (124 loc) · 3.28 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
services:
awt-docs:
build:
context: docs/.
dockerfile: local-dev.Dockerfile
ports:
- "4000:4000"
volumes:
- ./docs:/app/src
- vitepress_dist:/app/src/.vitepress/dist
- node_modules:/app/src/node_modules
env_file:
- .env.local-dev
awt-tile-cache:
build: tile_caching
volumes:
- ./tile_caching/cache:/data/nginx/cache
env_file:
- .env.local-dev
awt-mapfish-print-server:
build: mapfish_print_server/.
ports:
- "8080:8080"
depends_on:
- awt-tile-cache
env_file:
- .env.local-dev
healthcheck:
test: "curl -f http://localhost:8080"
interval: 2s
timeout: 1s
retries: 60
awt-swiss-tml-api:
build:
context: swiss_TLM_api/.
dockerfile: local-dev.Dockerfile
ports:
- "1848:1848"
volumes:
- ./swiss_TLM_api:/app
env_file:
- .env.local-dev
healthcheck:
test: "curl -f http://localhost:1848/ready | grep 'ready'"
interval: 5s
timeout: 1s
retries: 300
awt-backend:
build:
context: backend/.
dockerfile: local-dev.Dockerfile
ports:
- "5000:5000"
volumes:
- ./backend:/app
depends_on:
awt-mapfish-print-server:
condition: service_healthy
awt-swiss-tml-api:
condition: service_healthy
environment:
TZ: Europe/Zurich
env_file:
- .env.local-dev
awt-frontend:
build:
context: .
dockerfile: frontend/local-dev.Dockerfile
# Used in the first stage of the Dockerfile, thus these env vars must be passed as args
args:
- ENVIRONMENT_FILE=.env.local-dev
volumes:
- ./frontend/src:/app/src
ports:
- "80:80"
depends_on:
- awt-backend
- awt-valhalla
env_file:
- .env.local-dev
healthcheck:
test: "wget --no-verbose --tries=1 --spider http://localhost || exit 1"
interval: 5s
timeout: 1s
retries: 180
awt-valhalla:
build:
context: ./route_engine
dockerfile: dev.Dockerfile
ports:
- "8002:8002"
volumes:
- ./route_engine/sources/:/custom_files
environment:
# - tile_urls=https://download.geofabrik.de/europe/switzerland-latest.osm.pbf
- server_threads=2 # determines how many threads will be used to run the valhalla server
- use_tiles_ignore_pbf=True # load existing valhalla_tiles.tar directly
- build_elevation=False # build elevation with "True" or "Force": will download only the elevation for areas covered by the graph tiles
- build_admins=False # build admins db with "True" or "Force"
- build_time_zones=False # build timezone db with "True" or "Force"
- build_tar=True # build an indexed tar file from the tile_dir for faster graph loading times
- force_rebuild=False # forces a rebuild of the routing tiles with "True"
env_file:
- .env.local-dev
awt-store-api:
build:
context: ./store_api
dockerfile: local-dev.Dockerfile
volumes:
- ./store_api:/app
ports:
- "6000:6000"
env_file:
- .env.local-dev
awt-mongodb:
image: mongo:latest
env_file:
- .env.local-dev
volumes:
- mongo_data:/data/db
volumes:
vitepress_dist: {}
node_modules: {}
mongo_data: {}