generated from DAM/ts-TEMPLATE
- docker-compose.yml: TS_AUTHKEY and TS_LOGIN_SERVER now read from environment - README.md: updated Tailscale configuration instructions to reference env vars instead of editing the file - Added .gitignore to prevent committing secrets or Tailscale state This protects reusable test auth keys and custom coordination servers from being committed to any ts-* repo.
22 lines
619 B
YAML
22 lines
619 B
YAML
services:
|
|
{{service}}-ts:
|
|
image: tailscale/tailscale:latest
|
|
hostname: {{service}}
|
|
container_name: {{service}}-ts
|
|
environment:
|
|
- TS_AUTHKEY=${TS_AUTHKEY}
|
|
- TS_LOGIN_SERVER=${TS_LOGIN_SERVER}
|
|
- TS_STATE_DIR=/var/lib/tailscale
|
|
- TS_SERVE_CONFIG=/config/serve.json
|
|
volumes:
|
|
- ./tailscale/tailscale-data:/var/lib/tailscale
|
|
- ./tailscale/config:/config
|
|
- /dev/net/tun:/dev/net/tun
|
|
cap_add:
|
|
- net_admin
|
|
- sys_module
|
|
restart: unless-stopped
|
|
{{service-compose}}
|
|
network_mode: service:{{service}}-ts
|
|
depends_on:
|
|
- {{service}}-ts |