tailscale-sidecar
Docker sidecar that extends Tailscale for auto cert management and sharing in containerized services
1.8K
A specialized Docker container that extends the official Tailscale image to enable secure networking and certificate management within Docker Compose environments. This container acts as a sidecar, automatically managing Tailscale certificates and sharing them across your containerized services.
The image includes three critical scripts:
Use the provided x_build.sh script:
./x_build.sh
build-manifest.envUse the provided x_deploy.sh script:
./x_deploy.sh
build-manifest.envservices:
tailscale:
image: hhftechnology/tailscale-sidecar:latest
container_name: ts-${TS_HOSTNAME}
restart: unless-stopped
hostname: ${TS_HOSTNAME}
environment:
- TS_AUTHKEY=${TS_AUTHKEY}
- TS_STATE_DIR=/var/lib/tailscale
- TS_DOMAIN_NAME=${TS_HOST_FQDN}
volumes:
- ts-state:/var/lib/tailscale
- ts-certs:/certs
- /dev/net/tun:/dev/net/tun
cap_add:
- net_admin
- sys_module
service:
image: your-service:latest
network_mode: service:tailscale
depends_on:
- tailscale
volumes:
- ts-certs:/certs
# Additional service configuration...
volumes:
ts-state:
ts-certs:
TS_AUTHKEY: Your Tailscale authentication keyTS_HOSTNAME: Container hostnameTS_HOST_FQDN: Fully qualified domain name/certs: Certificate sharing directory/var/lib/tailscale: Tailscale state persistencenetwork_mode: service:tailscale for service networkingnet_admin and sys_module capabilities/dev/net/tun for VPN functionalityDetailed examples are available in the /examples directory:
This project is licensed under the MIT License - see the LICENSE file for details.
Content type
Image
Digest
sha256:e4da5e02d…
Size
51.3 MB
Last updated
7 months ago
docker pull hhftechnology/tailscale-sidecar