-
Notifications
You must be signed in to change notification settings - Fork 0
Docker
Docker is a commonly used container these days. It is possible to build Voodoo and run the voodoo command line program within docker, however there are a few tricks to it.
When launching Voodoo from within a [Docker container][docker] you will need to forwards Voodoo's ports if your app is not also running within the container.
Firstly you will have to tell Docker to publish the ports Voodoo will be listening on to the outside world. Usually by using something like
docker run -p 8080-8090The only issue with this is that Docker appears to automatically reserve the ports you specify even though Voodoo might not being listening on them. Details on container networking can be found here: https://docs.docker.com/config/containers/container-networking/.
Next when you launch voodoo you will need to add the --use-any-addr argument like this
$ voodoo --use-any-addr ....This tells Voodoo to use the IP 0.0.0.0 which means it effectively listens to all IP address within the container and thus, be able to receive the requests coming from the outside world.
See Configuration for configuration details.