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.yamlinside theupsnapfolder - Create a sub-folder inside
upsnap, namedts-upsnap - Inside
ts-upsnap, create foldersstateandconfig - If you want to access UpSnap from a single URL with no port number, as its own Tailscale node, place
upsnap.jsoninside theconfigfolder.
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