tailscale-docker/README.md

19 lines
861 B
Markdown
Raw Normal View History

2022-08-22 18:42:29 +00:00
# Tailscale in Docker without elevated privileges
2022-08-22 18:03:01 +00:00
2022-08-22 18:42:16 +00:00
See associated blog post: https://asselin.engineer/tailscale-docker
2022-08-22 18:03:01 +00:00
**Replace TAILSCALE_AUTH_KEY in `*/tailscale/start.sh` with your own**: https://login.tailscale.com/admin/settings/keys
## simple-example
As explained in the blog post, uses a docker-compose service to add the container in the VPN.
## complex-example
Not complex but more complex than the simple-example.
A nginx layer is added. It manages two services in independent containers at locations `/service-one` and `/service-two`.
## TODO
2022-08-22 18:42:16 +00:00
- force reuse hostname in tailscale instead of adding suffix. Example: first container is assigned `hostname`. Then, if container is recreated, Tailscale assigns `hostname-1`. Possibly helpful [info](https://tailscale.com/kb/1111/ephemeral-nodes/#can-i-create-an-ephemeral-node-without-an-auth-key).