From 7594d22a7d0cdd50284695b7622ee812270cea99 Mon Sep 17 00:00:00 2001 From: amfl Date: Mon, 22 Apr 2019 12:30:17 +1200 Subject: [PATCH] Dockerfile: Only expose external ports - 4005 is the internal webserver port which does not need to be exposed outside the container. - 4002 is the external websocket port which does need to be exposed outside the container. --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6f44989d44..697cd2ef64 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,7 @@ # Usage: # cd to a folder where you want your game data to be (or where it already is). # -# docker run -it --rm -p 4000:4000 -p 4001:4001 -p 4005:4005 -v $PWD:/usr/src/game evennia/evennia +# docker run -it --rm -p 4000:4000 -p 4001:4001 -p 4002:4002 -v $PWD:/usr/src/game evennia/evennia # # (If your OS does not support $PWD, replace it with the full path to your current # folder). @@ -16,8 +16,8 @@ # can install and run the game normally. Use Ctrl-D to exit the evennia docker container. # # You can also start evennia directly by passing arguments to the folder: -# -# docker run -it --rm -p 4000:4000 -p 4001:4001 -p 4005:4005 -v $PWD:/usr/src/game evennia/evennia evennia start -l +# +# docker run -it --rm -p 4000:4000 -p 4001:4001 -p 4002:4002 -v $PWD:/usr/src/game evennia/evennia evennia start -l # # This will start Evennia running as the core process of the container. Note that you *must* use -l # or one of the foreground modes (like evennia ipstart) since otherwise the container will immediately @@ -69,4 +69,4 @@ ENV PS1 "evennia|docker \w $ " ENTRYPOINT ["/usr/src/evennia/bin/unix/evennia-docker-start.sh"] # expose the telnet, webserver and websocket client ports -EXPOSE 4000 4001 4005 +EXPOSE 4000 4001 4002