arangodb / arangodb-docker

Docker container for ArangoDB
Apache License 2.0
106 stars 32 forks source link

Port customization does not work. #45

Closed nkanand4 closed 6 years ago

nkanand4 commented 6 years ago

Trying to customize Arango instance port to something other than 8529 does not work.

screen shot 2018-02-25 at 10 55 21 pm
dothebart commented 6 years ago

Hi, you can modify the bind port inside the container via environment variables. please have a look at https://hub.docker.com/_/arangodb/

-p only creates a portforward from inside of the docker container to the outside world. You can however use this to map the default port 8529 to 8888 like this: -p 8529:8888

nkanand4 commented 6 years ago

I was able to use the --server.endpoint option to customize it to use a different port. However, I noticed that it is accessible from within the container but not outside. Not sure what is interfering now. Help is much appreciated. screen shot 2018-02-26 at 10 07 11 am

dothebart commented 6 years ago

I can only repeat myself - you have to forward the port into the docker container via the docker commandline arguments

nkanand4 commented 6 years ago

I think you might have missed to note that from my later screenshot that I have done that already. I have customized it to run on a different port. That's how I am able to curl from within container. Also exposed that port and done the binding. Please note that in screenshot.

dothebart commented 6 years ago

Sometimes docker fails to set the firewall routing rules for containers. Restarting Firewalls and docker deamon and in doubt the full system usually fixes that. Please don't use screenshots, cut'n'paste doesn't work with these. Use tripple-backticks instead to blockquote cut'n'paste content.

nkanand4 commented 6 years ago

This totally makes sense. Let me give it a try and I will update this post. Thanks.