Deploy headless
See original GitHub issueHow can I deploy openrouteservice-app
headless? I would like to dockerize it and start it with the openrouteservice
through a combined docker-compose
.
First obstacle: the dev mode always tries to xdg-open
, which will fail with an error on headless mode.
UnhandledPromiseRejectionWarning: Error: Exited with code 3
If you reach this via google: A solution to prevent that is setting open: false
in the Gruntfile.js
.
The next obstacle seems network related. On an EC2 instance I cannot connect to the grunt web server. It always fails with Unable to connect
, even with all ports open. When launching the openrouteservice-app
from a docker container, I can only connect when I run docker run --network host ...
. Wireshark seems to catch plenty of communication via the 50624-50634
or the 53080-53116
range, but exposing these does not seem to fix it.
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (2 by maintainers)
I am trying to build a docker stack that has both ors and ors-app on the same network, both in docker containers. I am doing this through docker compose pulling ors from docker hub and I wrote a dockerfile for ors-app and built it locally. After making the described changes above, I did get it working in a docker container, I just have issues with CORS accessing the backend (ors) locally, but I can access the ors public api.
For reference, here’s the dockerfile:
Docker-compose:
And directives of my Gruntfile.js
I am currently running both of these on a headless server running RancherOS (docker-only OS).
I am documenting my findings on this issue thread in case others wish to run headless as well and wish to find a way to run this application in a docker container for testing or production.
Hello docquantum, thank you very much for sharing your state of dockerize. I will need some time to work with it, cause I have no deep experience with docker.