karlm3516
06/09/2025, 1:00 AMkarlm3516
06/09/2025, 1:03 AMtailscale --socket="/tmp/tailscaled.sock"
boot: 2025/06/09 01:01:40 Running 'tailscale up'
2025/06/09 01:01:40 Start
2025/06/09 01:01:40 Backend: logs: be:ad61dfc49e825d481738af72dad45ccd33d5102a0a32ebaf729f8aa96b883d1d fe:
2025/06/09 01:01:40 control: client.Login(0)
2025/06/09 01:01:40 control: client.Shutdown ...
2025/06/09 01:01:40 control: updateRoutine: exiting
2025/06/09 01:01:40 control: mapRoutine: exiting
2025/06/09 01:01:40 control: authRoutine: exiting
2025/06/09 01:01:40 control: Client.Shutdown done.
2025/06/09 01:01:40 health(warnable=login-state): error: You are logged out. The last login error was: fetch control key: Get "https://controlplane.tailscale.com/key?v=116": context canceledkarlm3516
06/09/2025, 1:07 AMservices:
# Make sure you have updated/checked the .env file with the correct variables.
# All the ${ xx } need to be defined there.
# Tailscale Sidecar Configuration
tailscale:
image: tailscale/tailscale:latest # Image to be used
container_name: tailscale-${SERVICE} # Name for local container management
hostname: ${SERVICE} # Name used within your Tailscale environment
environment:
- TS_AUTHKEY=${TS_AUTHKEY}
- TS_STATE_DIR=/var/lib/tailscale
- TS_SERVE_CONFIG=/config/serve.json # Tailsacale Serve configuration to expose the web interface on your local Tailnet - remove this line if not required
- TS_USERSPACE=false
- TS_ENABLE_HEALTH_CHECK=true # Enable healthcheck endpoint: "/healthz"
- TS_LOCAL_ADDR_PORT=127.0.0.1:41234 # The <addr>:<port> for the healthz endpoint
#- TS_EXTRA_ARGS=--accept-dns=true # Uncomment when using MagicDNS
volumes:
- ${PWD}/config:/config # Config folder used to store Tailscale files - you may need to change the path
- ${PWD}/ts/state:/var/lib/tailscale # Tailscale requirement - you may need to change the path
devices:
- /dev/net/tun:/dev/net/tun # Network configuration for Tailscale to work
cap_add:
- net_admin # Tailscale requirement
- sys_module # Tailscale requirement
#ports:
# - 0.0.0.0:${SERVICEPORT}:${SERVICEPORT} # Binding port ${SERVICE}PORT to the local network - may be removed if only exposure to your Tailnet is required
# If any DNS issues arise, use your preferred DNS provider by uncommenting the config below
#dns:
# - ${DNS_SERVER}
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://127.0.0.1:41234/healthz"] # Check Tailscale has a Tailnet IP and is operational
interval: 1m
timeout: 10s
retries: 3
start_period: 10s health checks
restart: alwayskarlm3516
06/09/2025, 1:40 AM