{"id":22386827,"url":"https://github.com/qnimbus/docker-caddy-tailscale","last_synced_at":"2026-01-07T00:17:48.847Z","repository":{"id":234160203,"uuid":"788359959","full_name":"QNimbus/docker-caddy-tailscale","owner":"QNimbus","description":"Docker sidecar using Caddy \u0026 Tailscale","archived":false,"fork":false,"pushed_at":"2024-10-15T19:26:08.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-01T02:41:33.845Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","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/QNimbus.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-04-18T09:06:35.000Z","updated_at":"2024-10-15T19:26:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"94a2450c-f9c7-44fc-b0e5-07a02a030b07","html_url":"https://github.com/QNimbus/docker-caddy-tailscale","commit_stats":null,"previous_names":["qnimbus/docker-caddy-tailscale"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QNimbus%2Fdocker-caddy-tailscale","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QNimbus%2Fdocker-caddy-tailscale/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QNimbus%2Fdocker-caddy-tailscale/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QNimbus%2Fdocker-caddy-tailscale/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/QNimbus","download_url":"https://codeload.github.com/QNimbus/docker-caddy-tailscale/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245734085,"owners_count":20663634,"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":[],"created_at":"2024-12-05T02:06:48.798Z","updated_at":"2026-01-07T00:17:48.822Z","avatar_url":"https://github.com/QNimbus.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker Caddy Tailscale\n\nThis repository provides a Docker configuration for setting up a sidecar container that integrates Caddy and Tailscale. This combination allows secure and easy exposure of web services over a Tailscale network, utilizing Caddy for reverse proxy capabilities and automatic HTTPS.\n\n## Description\n\nUtilize this Docker container to simplify the process of exposing web services securely over a private Tailscale network. Caddy automatically manages SSL/TLS certificate issuance and renewal, ensuring your services remain secure without manual intervention.\n\n## Use Cases\n\n- **Secure Internal Services**: Perfect for internal tools that need to be accessible over the internet without exposure to the public network.\n- **Development Environments**: Safely expose development servers to a controlled set of devices on your Tailscale network.\n\n## Configurable Environment Variables\n\n- `TS_VERBOSE`: Sets the verbosity level of Tailscale logs (0 for normal verbosity, higher numbers for more detailed logs).\n- `TS_AUTH_KEY`: [TailScale OAuth key](https://login.tailscale.com/admin/settings/oauth) used to connect this service to your Tailscale network.\n- `CADDY_PORT`: The port on which Caddy listens for HTTP requests, default is 8080.\n- `XDG_CONFIG_HOME`: Defines the path for configuration files; defaults to /config.\n- `XDG_DATA_HOME`: Defines the path for data files; defaults to /data.\n\n## Getting Started\n\n### Prerequisites\n\n- Docker installed on your machine.\n- A Tailscale account.\n\n### Using Docker Compose\n\nCreate a `docker-compose.yml` file:\n\n```yaml\n---\nservices:\n  caddy:\n    hostname: web # This will dictate the hostname on your Tailnet. Comment out to get a random 12 hexadecimal hostname.\n    restart: unless-stopped\n    build: .\n    environment:\n      CADDY_PORT: 8080\n      TS_VERBOSE: 0\n      TS_AUTH_KEY: '' # If not provided, an auth link will be output to the log - in that case set TS_VERBOSE to 1\n    volumes:\n      - ./Caddyfile:/etc/caddy/Caddyfile\n      - caddy_data:/data\n      - caddy_config:/config\n    # Configure 'networks' so that the sidecar container has access to the containers that need proxying\n    # networks:\n    #   - proxy-network\n\nvolumes:\n  caddy_data:\n  caddy_config:\n\n# Configure 'networks' so that the sidecar container has access to the containers that need proxying\n# networks:\n#   proxy-network:\n#     external: true\n```\n\n- Insert Tailscale Auth key in your `docker-compose.yaml` using TS_AUTH_KEY or place it in a `.env` file. (See: [TailScale OAuth clients](https://login.tailscale.com/admin/settings/oauth) and [Environment variables precedence in Docker Compose](https://docs.docker.com/compose/environment-variables/envvars-precedence/))\n- Ensure that the sidecar container has access to the containers that need proxying by adding it to the same (Docker) network\n\n### Running\n\nTo start the service, use:\n\n```bash\ndocker-compose up -d\n```\n\n_note: If you are using a discrete Docker network (e.g. `proxy-network`) ensure that is was created using `docker network create proxy-network`_\n\nThis will pull the necessary image, configure your environment, and start the container detached.\n\n## Contributing\n\nContributions are welcome! Please submit pull requests, or create issues for bugs and feature requests.\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqnimbus%2Fdocker-caddy-tailscale","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqnimbus%2Fdocker-caddy-tailscale","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqnimbus%2Fdocker-caddy-tailscale/lists"}