Skip to content

How do you change the listening port of the container? #134

Answered by felddy
klatschi asked this question in Q&A
Discussion options

You must be logged in to vote

Good question...

The server in the container will always listen on port 30000. This port is exposed by the container:

EXPOSE 30000/TCP

You need only publish the port to your desired target. In your case 40000. There is no need to modify the entry point, or the arguments. I'm not familiar with the Synology GUI but I expect the configuration you are searching for is in the "Netzwerk" tab.

This is how it would be accomplished using the CLI:

docker run \
  --env FOUNDRY_USERNAME='<your_username>' \
  --env FOUNDRY_PASSWORD='<your_password>' \
  --publish 40000:30000/tcp \
  --volume <your_data_dir>:/data \
  felddy/foundryvtt:r…

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@klatschi
Comment options

Answer selected by felddy
Comment options

You must be logged in to vote
4 replies
@felddy
Comment options

@ofmars87
Comment options

@ofmars87
Comment options

@ofmars87
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants