Docker secrets
If you want to use Docker secrets to store your Tailscale authkey, you can use the following example:
Add a docker secret
We need to create a docker secret, which we can name authkey and store the Tailscale
authkey in it. We can do that using the following command:
printf "Your Tailscale AuthKey" | docker secret create authkey -TsDProxy Docker compose
services:
tsdproxy:
image: almeidapaulopt/tsdproxy:latest
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- datadir:/data
- <PATH TO CONFIG>:/config
secrets:
- authkey
volumes:
datadir:
secrets:
authkey:
external: trueTsDProxy configuration
tailscale:
providers:
default: # name of the provider
authkeyfile: "/run/secrets/authkey" Restart tsdproxy
docker compose restartLast updated on