How to run valhalla with docker compose correctly? #3410
-
So I managed to get my valhalla instance running with docker compose with this
However, I noticed: What if the container shuts down and needs to be restarted? Then the whole process of downloading and rebuilding the tiles happens again, even though the tiles are already in the volume: map-data. How can I tweak this docker-compose.yml to reflect that? I have no problem running 2 different docker-compose.yml, one for building the tiles like that, the other to just start the service again with access to map-data. How do? I'm thinking I have to put the
or something like that in a different docker-compose.yml. I dunno. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
tons of strategies. for starters, you could check if valhalla_tiles.tar exists, if so, skip building. or compare timestamps or or or.. you could also just use our image: https://github.com/gis-ops/docker-valhalla. it supports most use cases quite well. the documentation is comprehensive. fwiw, IMO no need to open 4 different tickets, basically asking all about docker setups. bit too spaghetti for a public forum |
Beta Was this translation helpful? Give feedback.
-
hello, I am training to install the "Valhalla" route calculation engine locally under docker under virtualbox using ubuntu commands.
|
Beta Was this translation helpful? Give feedback.
-
Hello, I will have the following answer : docker: Error response from daemon: Conflict. The container name "/ valhalla_gis-ops" is already in use by container "Oc1bOb78b5afb5ef9f2786391Ofaa4d7e51bf6b2969b5b7e3e029c9bac062d0". you have to remove (or rename) that container to be able to reuse that name. The same, when I type the following instruction: I will have as an answer : docker: Error response from daemon: Conflict. The container name "/ valhalla_gis-ops" is already in use by container "Oc1bOb78b5afb5ef9f2786391Ofaa4d7e51bf6b2969b5b7e3e029c9bac062d0". you have to remove (or rename) that container to be able to reuse that name. In which case you advise me what to do if I did not understand the error message. I looked for these containers in order to either delete them or rename them although I did not find it, what to do in this case really I got stuck and this work I have to file soon. Awaiting a favorable response, please receive my most distinguished greetings. |
Beta Was this translation helpful? Give feedback.
-
I don’t understand why you keep inserting spaces everywhere.. that’s not how command line works.. Please, ask someone you know to help you, this is way too basic to be covered here. Those are questions for stackoverflow or so, not for a project specific discussion forum that’s supposed to be helpful for people looking for project-specific problems. Shell syntax is not one of them. |
Beta Was this translation helpful? Give feedback.
tons of strategies. for starters, you could check if valhalla_tiles.tar exists, if so, skip building. or compare timestamps or or or.. you could also just use our image: https://github.com/gis-ops/docker-valhalla. it supports most use cases quite well. the documentation is comprehensive.
fwiw, IMO no need to open 4 different tickets, basically asking all about docker setups. bit too spaghetti for a public forum