mirror of
https://github.com/restic/rest-server.git
synced 2025-12-06 17:15:45 -08:00
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:
@@ -9,7 +9,7 @@ COPY rest-server docker/*_user /usr/bin/
|
||||
|
||||
VOLUME /data
|
||||
|
||||
EXPOSE 80
|
||||
EXPOSE 8000
|
||||
|
||||
COPY docker/entrypoint.sh /entrypoint.sh
|
||||
|
||||
|
||||
@@ -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).
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user