-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
116 lines (106 loc) · 3.44 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
version: '3'
networks:
default:
driver: bridge
services:
jupyter:
container_name: smartbin-jupyter
image: smartbin-jupyter:latest
build:
context: ./jupyter/
args:
NB_UID: "1001"
ports: ["8090:8888"]
volumes:
- ./jupyter/jupyter_notebook_config.py:/home/jovyan/.jupyter/jupyter_notebook_config.py
- ./jupyter/data:/home/jovyan/data
- ./jupyter/tests:/home/jovyan/tests
#restart: always
depends_on:
- vroom
ors:
container_name: smartbin-ors
ports:
- 8082:8080
image: openrouteservice/openrouteservice:v6.6.1
environment:
- BUILD_GRAPHS=True
# Forces the container to rebuild ORS java
- JAVA_OPTS=-Djava.awt.headless=true -server -XX:TargetSurvivorRatio=75 -XX:SurvivorRatio=64 -XX:MaxTenuringThreshold=3 -XX:+UseConcMarkSweepGC -XX:ParallelGCThreads=4 -Xms512m -Xmx2000m -XX:MaxMetaspaceSize=2000m
- CATALINA_OPTS=-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9001 -Dcom.sun.management.jmxremote.rmi.port=9001 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=localhost
volumes:
#PATCH for error "cp: cannot remove '/ors-conf/app.config': Read-only file system"
- ./ors/docker-entrypoint.sh:/docker-entrypoint.sh:ro
- ./ors/conf:/ors-conf:ro
#
- ./logs/:/var/log/ors/
- ./logs/:/usr/local/tomcat/logs/
- ./elevation_cache/:/ors-core/data/elevation_cache/
# Cuneo
- ./graphs.cuneo/:/ors-core/data/graphs
- ./data/cuneo.osm.pbf:/ors-core/data/osm_file.pbf
## Povo
#- ./graphs.povo/:/ors-core/data/graphs
#- ./data/povo_restrict.osm.pbf:/ors-core/data/osm_file.pbf
#- ./data/povo.osm.gz:/ors-core/data/osm_file.pbf
#
vroom:
container_name: smartbin-vroom
image: smartbin-vroom:1.10.0
build:
context: ./vroom/
args:
VROOM_RELEASE: v1.10.0
VROOM_EXPRESS_RELEASE: v0.9.0
ports: ["8084:3000"]
volumes:
- ./vroom/conf/config.yml:/vroom-express/config.yml:ro
environment:
- ORS_HOST=ors
- ORS_PORT=8080
# - VROOM_LOG=./vroom/conf/
depends_on:
- ors
# #ors-proxy is useful for logging requestes/resposes from vroom to ors
# # and allow use of custom restrictions value of profile vehicle
# # to test restrictions use volume: ./data/mezzocorona_restrictions.osm.pbf:/ors-core/data/osm_file.pbf
ors-proxy:
container_name: smartbin-ors-proxy
image: smartbin-ors-proxy:latest
build:
context: ./ors-proxy/
ports: ["9090:9090"]
environment:
- ORS_HOST=ors
- ORS_PORT=8080
volumes:
#edits restrictions and restart service to apply
- ./ors-proxy/config.js:/ors-proxy/config.js:ro
#restart: always
depends_on:
- ors
ors-app:
container_name: smartbin-ors-app
image: smartbin-ors-app:latest
build:
context: ./ors-app/
args:
ORSAPP_RELEASE: v0.6.0
ports: ["8085:3035"]
volumes:
- ./ors-app/build:/ors-app/app/build
- ./ors-app/Gruntfile.js:/ors-app/Gruntfile.js
depends_on:
- ors
vroom-app:
container_name: smartbin-vroom-app
image: smartbin-vroom-app
build:
context: ./vroom-app/
args:
ORSAPP_RELEASE: v0.4.3
ports: ["8086:9966"]
volumes:
- ./vroom-app/config.js:/vroom-app/src/config/api.js
depends_on:
- vroom