Fixes #419
parent
a116b7aadd
commit
1ae02416b6
|
@ -3,8 +3,9 @@ services:
|
||||||
image: zefhemel/silverbullet
|
image: zefhemel/silverbullet
|
||||||
container_name: silverbullet
|
container_name: silverbullet
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
## To enable additional options, such as BasicAuth, uncomment the following line:
|
## To enable additional options, such as authentication, set environment variables, e.g.
|
||||||
# command: ["--user=user:pw"]
|
#environment:
|
||||||
|
#- SB_USER=angel:1234
|
||||||
volumes:
|
volumes:
|
||||||
- space:/space
|
- space:/space
|
||||||
ports:
|
ports:
|
||||||
|
|
|
@ -56,13 +56,13 @@ docker volume create myspace
|
||||||
Then, run the container, e.g., as follows:
|
Then, run the container, e.g., as follows:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
docker run -p 3000:3000 -v myspace:/space -d --name silverbullet zefhemel/silverbullet
|
docker run -p 3000:3000 -v myspace:/space -d zefhemel/silverbullet
|
||||||
```
|
```
|
||||||
|
|
||||||
If you'd like to pass in additional command line arguments (e.g. `--user` to add authentication), you can just append those to the command, e.g.:
|
To configure various things such as authentication, use [[@env|environment variables]], e.g. to enable single-user auth:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
docker run -p 3000:3000 -v myspace:/space -d --name silverbullet zefhemel/silverbullet --user me:letmein
|
docker run -p 3000:3000 -v myspace:/space -d -e SB_USER=me:letmein zefhemel/silverbullet
|
||||||
```
|
```
|
||||||
|
|
||||||
To build your own version of the docker image, run `./scripts/build_docker.sh`.
|
To build your own version of the docker image, run `./scripts/build_docker.sh`.
|
||||||
|
@ -106,6 +106,7 @@ $ sudo caddy reverse-proxy --to :3000 --from yourserver.yourtsdomain.ts.net:443
|
||||||
If you access SilverBullet via plain HTTP (outside of localhost) everything _should_ still mostly work, except offline mode.
|
If you access SilverBullet via plain HTTP (outside of localhost) everything _should_ still mostly work, except offline mode.
|
||||||
|
|
||||||
## Environment variables
|
## Environment variables
|
||||||
|
$env
|
||||||
You can configure SB with environment variables instead of flags as well. The following environment variables are supported:
|
You can configure SB with environment variables instead of flags as well. The following environment variables are supported:
|
||||||
|
|
||||||
* `SB_USER`: Sets single-user credentials (like `--user`), e.g. `SB_USER=pete:1234`
|
* `SB_USER`: Sets single-user credentials (like `--user`), e.g. `SB_USER=pete:1234`
|
||||||
|
|
Loading…
Reference in New Issue