{"id":27185193,"url":"https://github.com/rlan/tailscale-caddy-docker-compose","last_synced_at":"2026-05-09T04:32:06.298Z","repository":{"id":258487309,"uuid":"867420072","full_name":"rlan/tailscale-caddy-docker-compose","owner":"rlan","description":"Running a service behind Tailscale and Caddy reverse proxy using Docker Compose","archived":false,"fork":false,"pushed_at":"2024-10-17T06:04:19.000Z","size":2,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-09T17:12:54.147Z","etag":null,"topics":["caddy","caddy-docker","docker","docker-compose","nginx-docker","reverse-proxy","tailscale"],"latest_commit_sha":null,"homepage":"https://ricklan.net/blog/2024/10/running-a-service-behind-tailscale-and-caddy-reverse-proxy-using-docker-compose/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rlan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-10-04T03:14:19.000Z","updated_at":"2025-01-10T04:40:06.000Z","dependencies_parsed_at":"2024-10-19T08:26:12.847Z","dependency_job_id":"16cf6bdd-4bca-4060-af28-bb7390128cf8","html_url":"https://github.com/rlan/tailscale-caddy-docker-compose","commit_stats":null,"previous_names":["rlan/tailscale-caddy-docker-compose"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rlan/tailscale-caddy-docker-compose","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rlan%2Ftailscale-caddy-docker-compose","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rlan%2Ftailscale-caddy-docker-compose/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rlan%2Ftailscale-caddy-docker-compose/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rlan%2Ftailscale-caddy-docker-compose/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rlan","download_url":"https://codeload.github.com/rlan/tailscale-caddy-docker-compose/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rlan%2Ftailscale-caddy-docker-compose/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32807182,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"online","status_checked_at":"2026-05-09T02:00:06.633Z","response_time":123,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["caddy","caddy-docker","docker","docker-compose","nginx-docker","reverse-proxy","tailscale"],"created_at":"2025-04-09T17:12:53.215Z","updated_at":"2026-05-09T04:32:06.277Z","avatar_url":"https://github.com/rlan.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Running a service behind Tailscale and Caddy reverse proxy using Docker compose\n\nThis repo is for this blog [post](https://ricklan.net/blog/2024/10/running-a-service-behind-tailscale-and-caddy-reverse-proxy-using-docker-compose/).\n\n## Usage\n\n1. `git clone` this repo\n2. Modify the Tailscale OAuth secret in [.env](./.env) according to your Tailscale settings.\n3. Modify the \"hostname\" in [docker-compose.yml](./docker-compose.yml) to your Tailscale settings.\n4. Modify the domain name in [Caddyfile](./Caddyfile) to your Tailscale settings.\n5. Run `docker compose up -d`.\n6. Browse to [https://your-service.your-tailscale-network.ts.net](https://your-service.your-tailscale-network.ts.net). There might be a delay for creation of a domain certificate.\n\nLogs of tailscale container during creation of domain certificate:\n\n```txt\n2024-10-04 11:10:42 tailscale-1  | 2024/10/04 02:10:42 cert(\"my-service.my-tailscale-network.ts.net\"): registered ACME account.\n2024-10-04 11:10:42 tailscale-1  | 2024/10/04 02:10:42 cert(\"my-service.my-tailscale-network.ts.net\"): starting SetDNS call...\n2024-10-04 11:10:53 tailscale-1  | 2024/10/04 02:10:53 cert(\"my-service.my-tailscale-network.ts.net\"): did SetDNS\n2024-10-04 11:10:55 tailscale-1  | 2024/10/04 02:10:55 cert(\"my-service.my-tailscale-network.ts.net\"): requesting cert...\n2024-10-04 11:10:56 tailscale-1  | 2024/10/04 02:10:56 cert(\"my-service.my-tailscale-network.ts.net\"): got cert\n\n```\n\n## Tested\n\n* Docker Desktop on macOS 15 on Apple Silicon.\n* Docker on Ubuntu 22.04 LTS on Intel CPU.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frlan%2Ftailscale-caddy-docker-compose","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frlan%2Ftailscale-caddy-docker-compose","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frlan%2Ftailscale-caddy-docker-compose/lists"}