Set docker image default port also to 8000

So that rest-server can be started as non-root user.  You can choose
which port to expose, anyway.
This commit is contained in:
Zlatko Čalušić
2017-10-19 00:16:54 +02:00
parent 132232db69
commit a20136a8da
3 changed files with 3 additions and 3 deletions

View File

@@ -9,7 +9,7 @@ COPY rest-server docker/*_user /usr/bin/
VOLUME /data
EXPOSE 80
EXPOSE 8000
COPY docker/entrypoint.sh /entrypoint.sh

View File

@@ -113,7 +113,7 @@ Persistent data volume is located to `/data`.
#### Start server
```
docker run -p 80:80 -v /my/data:/data --name rest_server restic/rest-server
docker run -p 8000:8000 -v /my/data:/data --name rest_server restic/rest-server
```
It's suggested to set a container name to more easily manage users (see next section).

View File

@@ -16,4 +16,4 @@ else
rm -f "$PASSWORD_FILE"
fi
exec rest-server --listen ":80" $OPTIONS --path "$DATA_DIRECTORY"
exec rest-server --path "$DATA_DIRECTORY" $OPTIONS