mirror of
https://github.com/sstent/unifi.git
synced 2025-12-06 06:01:37 +00:00
remove exposing mongodb port as unifi binds mongo only to localhost,
add --restart_always option
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user