From 6001eed2be0fc818da427789227d74b1b94ac375 Mon Sep 17 00:00:00 2001 From: Tommi2Day Date: Fri, 17 Feb 2017 13:25:08 +0100 Subject: [PATCH] remove exposing mongodb port as unifi binds mongo only to localhost, add --restart_always option --- Dockerfile.unifi5 | 2 +- README.md | 5 +++-- run_unifi.sh | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile.unifi5 b/Dockerfile.unifi5 index 6e31ebc..4b237f1 100644 --- a/Dockerfile.unifi5 +++ b/Dockerfile.unifi5 @@ -22,7 +22,7 @@ RUN rm -f /usr/lib/unifi/backups && ln -s /backups /usr/lib/unifi/backups #define interface VOLUME /usr/lib/unifi/data VOLUME /backups /logs -EXPOSE 8443 8880 8080 27117 +EXPOSE 8443 8880 8080 #Runtime Env ENV PATH "$PATH:/usr/lib/unifi" diff --git a/README.md b/README.md index ce0342b..1de6c49 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ see also build_unifi.sh ### exposed Ports ```sh # WebUI Inform mongodb -EXPOSE 8443 8080 27117 +EXPOSE 8443 8080 8880 ``` ### Volumes ```sh @@ -38,9 +38,10 @@ docker run -d \ -v /shared/unifi5/logs":/logs \ --hostname unifi5 \ --name unifi5 \ + --restart=always \ -p 8080:8080 \ + -p 8880:8880 \ -p 8443:8443 \ - -p 27117:27117 \ tommi2day/unifi5 ``` see run_unifi.sh for an example diff --git a/run_unifi.sh b/run_unifi.sh index 85df0a9..b3a4c3e 100644 --- a/run_unifi.sh +++ b/run_unifi.sh @@ -60,10 +60,10 @@ $DOCKER run $RUN \ -v "${SHARED_DIR}/logs":/logs \ --hostname $VMNAME \ --name ${VMNAME} \ + --restart=always \ -p :8080:8080 \ -p 8880:8880 \ -p 8443:8443 \ - -p 37117:27117 \ $DOCKER_USER/$VMNAME $1 " >starter if [ "$OSTYPE" = "msys" ]; then mv starter starter.ps1