From 690834390a1dd00e33cc318beed882fc2e5c9654 Mon Sep 17 00:00:00 2001 From: Abel Luck Date: Tue, 7 Nov 2023 10:59:22 +0100 Subject: [PATCH] readme: add container use example --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index ad7eea9..0c9a6ea 100644 --- a/README.md +++ b/README.md @@ -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` * 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 values can be set using environment variables, or optionally loaded from an environment file. The settings include: