mirror of
https://github.com/restic/rest-server.git
synced 2026-09-12 07:06:09 -07: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:
+1
-1
@@ -9,7 +9,7 @@ COPY rest-server docker/*_user /usr/bin/
|
|||||||
|
|
||||||
VOLUME /data
|
VOLUME /data
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 8000
|
||||||
|
|
||||||
COPY docker/entrypoint.sh /entrypoint.sh
|
COPY docker/entrypoint.sh /entrypoint.sh
|
||||||
|
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ Persistent data volume is located to `/data`.
|
|||||||
#### Start server
|
#### 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).
|
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"
|
rm -f "$PASSWORD_FILE"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exec rest-server --listen ":80" $OPTIONS --path "$DATA_DIRECTORY"
|
exec rest-server --path "$DATA_DIRECTORY" $OPTIONS
|
||||||
|
|||||||
Reference in New Issue
Block a user