Requires tailscale CLI installed & authenticated
# Get template files
TEMPLATE="https://raw.githubusercontent.com/mrgnw/svelte-docker-tailscale/main"
curl -O "$TEMPLATE/Dockerfile" & \
curl -O "$TEMPLATE/compose.yml" & wait
# Set up Tailscale config
echo "/tailscale" >> .gitignore
Get an auth key from Tailscale admin console
TS_AUTHKEY=
Then add it to your env
echo "TS_AUTHKEY=$TS_AUTHKEY" >> .env
docker compose up
That's it! Your app will be available at https://${PWD##*/}.$TAILNET
All configuration is optional except TS_AUTHKEY. Defaults are:
${COMPOSE_PROJECT_NAME}-network${COMPOSE_PROJECT_NAME}${TS_CERT_DOMAIN:-localhost} (defaults to localhost)Override any of these by setting them in .env