Example of a docker compose file and Serve configuration for UpSnap that adds Tailscale connectivity as a "sidecar." Created as part of the blog post: Make a dedicated Wake-on-LAN server with Tailscale.
See our blog post on Docker or YouTube video guide for more details and examples on configuring Tailscale inside containers.
To utilize this:
- Create a folder on the hosting system named
upsnap
- Place
compose.yaml
inside theupsnap
folder - Create a sub-folder inside
upsnap
, namedts-upsnap
- Inside
ts-upsnap
, create foldersstate
andconfig
- If you want to access UpSnap from a single URL with no port number, as its own Tailscale node, place
upsnap.json
inside theconfig
folder.
With those pieces in place, from the upsnap
folder, run:
docker compose up -d
This should pull and start the container images for UpSnap and Tailscale, and (if you set it up) use upsnap.json
to configure your container with Tailscale serve.
To check for Tailscale errors and issues, run:
docker exec -it ts-upsnap tailscale status