我正在尝试使用 docker-compose设置本地Vroom实例(遵循本教程)。这是我的 docker-compose 文件:
version: "3"
services:
osrm:
container_name: osrm
image: osrm/osrm-backend
restart: always
ports:
- "5000:5000"
volumes:
- /home/florian/Documents/repo/vroom-test:/data
command: "osrm-routed --max-matching-size 1000 --max-table-size 1000 --max-viaroute-size 1000 --algorithm mld /data/sachsen-anhalt-latest.osrm"
networks:
tsp_network:
aliases:
- osrm
vroom-backend:
container_name: vroom-backend
image: vroomvrp/vroom-docker:v1.11.0
restart: always
ports:
- "3000:3000"
environment:
- VROOM_ROUTER=osrm
depends_on:
- osrm
networks:
tsp_network:
aliases:
- vroom-backend
vroom-frontend:
container_name: vroom-frontend
image: iedmrc/vroom-frontend
restart: always
ports:
- "9966:9966"
depends_on:
- osrm
- vroom-backend
networks:
tsp_network:
aliases:
- vroom-frontend
networks:
tsp_network:
driver: bridge
一切都开始正常并且似乎工作,但是当我尝试使用 vroom-frontend 时,它不起作用并且我收到以下错误:
我认为这是因为nominatim阻止了我的 IP 地址(请求太多)——这应该发生吗?没有这个外部服务不应该工作 Vroom 吗?
我也收到以下错误:
这是我的输入文件,在Vroom 演示中使用时效果很好:
{
"vehicles" : [
{
"id" : 0,
"description" : "vehicle 0: 0:0 - 0:0",
"start" : [
12.304373066846503,
51.62270653765847
],
"end" : [
12.304373066846503,
51.62270653765847
],
"capacity" : [
9
],
"skills" : [
],
"time_window" : [
1644188400,
1644274800
],
"breaks" : [
{
"id" : 1,
"time_windows" : [
[
1644195600,
1644267600
]
],
"service" : 1800,
"description" : "30 minute break between 2:0 and 22:0."
}
]
},
{
"id" : 1,
"description" : "vehicle 1: 0:0 - 0:0",
"start" : [
12.304373066846503,
51.62270653765847
],
"end" : [
12.304373066846503,
51.62270653765847
],
"capacity" : [
9
],
"skills" : [
],
"time_window" : [
1644188400,
1644274800
],
"breaks" : [
{
"id" : 1,
"time_windows" : [
[
1644195600,
1644267600
]
],
"service" : 1800,
"description" : "30 minute break between 2:0 and 22:0."
}
]
},
{
"id" : 2,
"description" : "vehicle 2: 0:0 - 0:0",
"start" : [
12.304373066846503,
51.62270653765847
],
"end" : [
12.304373066846503,
51.62270653765847
],
"capacity" : [
9
],
"skills" : [
],
"time_window" : [
1644188400,
1644274800
],
"breaks" : [
{
"id" : 1,
"time_windows" : [
[
1644195600,
1644267600
]
],
"service" : 1800,
"description" : "30 minute break between 2:0 and 22:0."
}
]
},
{
"id" : 3,
"description" : "vehicle 3: 0:0 - 0:0",
"start" : [
12.304373066846503,
51.62270653765847
],
"end" : [
12.304373066846503,
51.62270653765847
],
"capacity" : [
9
],
"skills" : [
],
"time_window" : [
1644188400,
1644274800
],
"breaks" : [
{
"id" : 1,
"time_windows" : [
[
1644195600,
1644267600
]
],
"service" : 1800,
"description" : "30 minute break between 2:0 and 22:0."
}
]
}
],
"shipments" : [
{
"amount" : [
1
],
"skills" : [
],
"pickup" : {
"id" : 0,
"service" : 60,
"location" : [
12.219437,
51.715622
],
"time_windows" : [
[
1644201240,
1644203040
]
],
"description" : "pickup: Salzfurtkapelle, Alte Schule (order #0)"
},
"delivery" : {
"id" : 1,
"service" : 60,
"location" : [
12.175563,
51.694164
],
"time_windows" : [
[
1644203040,
1644204360
]
],
"description" : "delivery: Thurland, Schule (order #0)"
}
},
{
"amount" : [
1
],
"skills" : [
],
"pickup" : {
"id" : 1,
"service" : 60,
"location" : [
11.984295,
51.477322
],
"time_windows" : [
[
1644201240,
1644203040
]
],
"description" : "pickup: Höhnstedt, Hauptstraße (order #1)"
},
"delivery" : {
"id" : 2,
"service" : 60,
"location" : [
11.738257,
51.502209
],
"time_windows" : [
[
1644203040,
1644205200
]
],
"description" : "delivery: Halle, Hauptbahnhof ZOB(8) (order #1)"
}
},
{
"amount" : [
1
],
"skills" : [
],
"pickup" : {
"id" : 2,
"service" : 60,
"location" : [
11.984295,
51.477322
],
"time_windows" : [
[
1644201900,
1644203700
]
],
"description" : "pickup: Bennstedt, Eisdorfer Straße (order #2)"
},
"delivery" : {
"id" : 3,
"service" : 60,
"location" : [
11.824311,
51.480865
],
"time_windows" : [
[
1644203700,
1644205200
]
],
"description" : "delivery: Halle, Hauptbahnhof ZOB(8) (order #2)"
}
},
{
"amount" : [
1
],
"skills" : [
],
"pickup" : {
"id" : 3,
"service" : 60,
"location" : [
11.978663,
51.488106
],
"time_windows" : [
[
1644202020,
1644203820
]
],
"description" : "pickup: Hohenthurm, Alte Bahnhofstraße (1) (order #3)"
},
"delivery" : {
"id" : 4,
"service" : 60,
"location" : [
12.097989,
51.520866
],
"time_windows" : [
[
1644203820,
1644204900
]
],
"description" : "delivery: Halle, Am Steintor (order #3)"
}
}
]
}
这是它的外观(使用官方 Vroom 演示服务器):