-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
64 lines (61 loc) · 1.59 KB
/
Copy pathdocker-compose.yml
File metadata and controls
64 lines (61 loc) · 1.59 KB
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
services:
# OSRM Backend Service
osrm:
build:
context: .
dockerfile: Dockerfile.osrm
container_name: osrm-backend
volumes:
- ${HOST_OSRM_DATA_DIR:-./osrm-data}:/data
command: >
sh -c "
/init-osrm-data.sh &&
osrm-routed --algorithm mld /data/france-latest.osrm
"
networks:
- osrm-network
- npm_network
restart: unless-stopped
# Application Service (Node.js + Angular)
app:
build:
context: .
dockerfile: Dockerfile
container_name: osrm-batch-routing
user: "1000:1000"
ports:
- "8888:80"
environment:
- NODE_ENV=${NODE_ENV:-production}
- OSRM_URL=${OSRM_URL:-http://osrm:5000}
- PORT=${PORT:-80}
- UPLOAD_DIR=${UPLOAD_DIR:-/app/uploads}
- LOG_DIR=${LOG_DIR:-/app/logs}
- RESULTS_DIR=${RESULTS_DIR:-/app/results}
- TEMP_DIR=${TEMP_DIR:-/app/temp}
- LOG_LEVEL=${LOG_LEVEL:-info}
- MAX_FILE_SIZE=${MAX_FILE_SIZE:-52428800}
- MAX_FILES_KEPT=${MAX_FILES_KEPT:-50}
- MAX_JOBS_KEPT=${MAX_JOBS_KEPT:-100}
- MAX_RESULTS_KEPT=${MAX_RESULTS_KEPT:-100}
- FILE_CLEANUP_INTERVAL=${FILE_CLEANUP_INTERVAL:-24}
volumes:
- ${HOST_UPLOAD_DIR:-./uploads}:/app/uploads
- ${HOST_LOG_DIR:-./logs}:/app/logs
- ${HOST_RESULTS_DIR:-./results}:/app/results
- ${HOST_TEMP_DIR:-./temp}:/app/temp
depends_on:
- osrm
networks:
- osrm-network
- npm_network
restart: unless-stopped
networks:
osrm-network:
driver: bridge
npm_network:
external: true
volumes:
osrm-data:
uploads:
logs: