{"id":27185211,"url":"https://github.com/ghomashudson/tailscale-auto-docker-compose","last_synced_at":"2025-10-17T15:02:31.601Z","repository":{"id":246213162,"uuid":"820427856","full_name":"ghomasHudson/Tailscale-Auto-docker-compose","owner":"ghomasHudson","description":"Automatically adds tailscale sidecar proxy containers","archived":false,"fork":false,"pushed_at":"2024-06-26T21:27:39.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-09T17:13:40.602Z","etag":null,"topics":["docker","docker-compose","self-hosted","tailscale"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ghomasHudson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-26T12:55:02.000Z","updated_at":"2024-06-26T21:27:43.000Z","dependencies_parsed_at":"2024-06-26T16:01:47.765Z","dependency_job_id":null,"html_url":"https://github.com/ghomasHudson/Tailscale-Auto-docker-compose","commit_stats":null,"previous_names":["ghomashudson/tailscale-auto-docker-compose"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghomasHudson%2FTailscale-Auto-docker-compose","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghomasHudson%2FTailscale-Auto-docker-compose/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghomasHudson%2FTailscale-Auto-docker-compose/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghomasHudson%2FTailscale-Auto-docker-compose/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ghomasHudson","download_url":"https://codeload.github.com/ghomasHudson/Tailscale-Auto-docker-compose/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248074953,"owners_count":21043490,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","docker-compose","self-hosted","tailscale"],"created_at":"2025-04-09T17:13:46.672Z","updated_at":"2025-10-17T15:02:26.562Z","avatar_url":"https://github.com/ghomasHudson.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tailscale Auto docker-compose generator\n\nAutomatically generate tailscale sidecar containers for each of your services as per [Contain your excitement: A deep dive into using Tailscale with Docker](https://tailscale.com/blog/docker-tailscale-guide).\n\nInstead of repeating yourself over and over, just add labels to each container a-la traefik.\n\n## Setup\n\n1. Install the python dependencies: `pip install -r requirements.txt`\n2. Put your normal docker stuff in a yaml file e.g. `compose.main.yaml`. Add the labels `tailscale.port` and `tailscale.allowFunnel` to each of your containers e.g:\n```yaml\nservices:\n  whoami:\n    image: containous/whoami\n    container_name: whoami\n    restart: unless-stopped\n    labels:\n      - \"tailscale.port=80\"\n      - \"tailscale.allowFunnel=false\"\n  mealie:\n    image: ghcr.io/mealie-recipes/mealie:v1.0.0\n    container_name: mealie\n    volumes:\n      - ./mealie:/app/data/\n    environment:\n      - ALLOW_SIGNUP=true\n    restart: unless-stopped\n    labels:\n      - \"tailscale.port=9000\"\n      - \"tailscale.allowFunnel=false\"\n```\n3. Start the script with your tailscale credentials: `python make_tailscale.py --ts_oauth_client_secret tskey-client-aJNDSFD-DSAd...`.\nThis will regenerate `compose.yaml` with all the tailscale magic everytime you edit `compose.main.yaml` so find a way to keep it running in the background.\n\nMake sure you're enabled serving, ACL tags etc.. in the tailscale admin console.\n\n## How it works\n\nFor every service with \"tailscale\" labels, the script will generate a sidecar container + a serve config. Under `.tailscale`, the script generates the following structure:\n\n```\n.tailscale\n├─ serve_configs\n│  ├─ mealie.json\n│  ├─ whoami.json\n├─ states\n│  ├─ mealie\n│  ├─ whoami\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghomashudson%2Ftailscale-auto-docker-compose","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fghomashudson%2Ftailscale-auto-docker-compose","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghomashudson%2Ftailscale-auto-docker-compose/lists"}