readme: add container use example

This commit is contained in:
Abel Luck 2023-11-07 10:59:22 +01:00
parent 02151e49b8
commit 690834390a

View file

@ -52,6 +52,18 @@ See [the prometheus docs][0] for more information on the HTTP service discovery
* Container image: `registry.gitlab.com/guardianproject-ops/tailscalesd:VERSION` * Container image: `registry.gitlab.com/guardianproject-ops/tailscalesd:VERSION`
* See versions at: https://gitlab.com/guardianproject-ops/tailscalesd/container_registry/5749401 * See versions at: https://gitlab.com/guardianproject-ops/tailscalesd/container_registry/5749401
``` shell
docker run \
--name=tailscalesd \
--rm \
--cap-drop=all \
--user 1000:1000 \
--publish 127.0.0.1:9242:9242 \
--env TAILSCALESD_ENV_FILE=/tailscalesd.env \
--mount type=bind,dst=/tailscalesd.env,ro=true,src=/path/to/tailscalesd.env \
registry.gitlab.com/guardianproject-ops/tailscalesd:latest
```
### Configuration ### Configuration
Configuration values can be set using environment variables, or optionally loaded from an environment file. The settings include: Configuration values can be set using environment variables, or optionally loaded from an environment file. The settings include: