-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
65 lines (63 loc) · 1.62 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
services:
graphhopper:
image: israelhikingmap/graphhopper:10.0
container_name: graphhopper
ports:
- "8989:8989"
volumes:
- ./routing-backend/graphhopper/thapar_map.osm:/data/thapar_map.osm
- ./routing-backend/graphhopper/config.yml:/data/config.yml
command: >
--input /data/thapar_map.osm
--config /data/config.yml
--host 0.0.0.0
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8989/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 5s
restart: on-failure
routing-backend:
build:
context: ./routing-backend/api
dockerfile: api.Dockerfile
container_name: routing-backend
depends_on:
graphhopper:
condition: service_healthy
environment:
GRAPHHOPPER_BASE_URL: http://graphhopper:8989/route
ports:
- "5000:5000"
redis:
image: redis/redis-stack:latest
container_name: redis
ports:
- "6379:6379" # Redis port
- "8001:8001" # Redis Stack GUI port
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 30s
timeout: 10s
retries: 3
restart: unless-stopped
quinjet:
build:
context: ./quinjet
dockerfile: quinjet.Dockerfile
container_name: quinjet
depends_on:
redis:
condition: service_healthy
environment:
REDIS_HOST: redis
REDIS_PORT: 6379
ports:
- "8080:8080"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/api/v1/health/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 3s