{"id":17750503,"url":"https://github.com/sammy-t/pi-net","last_synced_at":"2026-04-11T11:03:42.252Z","repository":{"id":259547314,"uuid":"878130718","full_name":"Sammy-T/pi-net","owner":"Sammy-T","description":"Docker container configuration for Tailscale with Pi-hole using Docker Compose.","archived":false,"fork":false,"pushed_at":"2024-10-28T19:05:13.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-01T08:54:29.559Z","etag":null,"topics":["docker","docker-compose","pi-hole","tailscale"],"latest_commit_sha":null,"homepage":"","language":null,"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/Sammy-T.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-10-24T20:43:58.000Z","updated_at":"2024-10-28T19:05:16.000Z","dependencies_parsed_at":"2024-10-26T19:41:21.103Z","dependency_job_id":null,"html_url":"https://github.com/Sammy-T/pi-net","commit_stats":null,"previous_names":["sammy-t/pi-net"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Sammy-T/pi-net","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sammy-T%2Fpi-net","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sammy-T%2Fpi-net/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sammy-T%2Fpi-net/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sammy-T%2Fpi-net/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sammy-T","download_url":"https://codeload.github.com/Sammy-T/pi-net/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sammy-T%2Fpi-net/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268385863,"owners_count":24242105,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"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":["docker","docker-compose","pi-hole","tailscale"],"created_at":"2024-10-26T12:05:02.373Z","updated_at":"2026-04-11T11:03:37.219Z","avatar_url":"https://github.com/Sammy-T.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# pi-net\n\nA [Docker](https://www.docker.com/) container configuration for [Tailscale](https://tailscale.com/) with [Pi-hole](https://pi-hole.net/) using Docker Compose.\n\nThis sets up two containers and allows the Tailscale container to be used as an exit node with ad blocking provided by the Pi-hole container.\n\n\u003e [!NOTE]\n\u003e This configuration requires manually supplying the Pi-hole container's IP address to the Tailscale Docker Compose in order to correctly build the Tailscale container. \\\n\u003e Instructions are included in the [Getting Started](#getting-started) section.\n\u003e\n\u003e I would like to have this set up without manually having to retrieve and set the IP address but this is what I've got working at the moment.\n\n## Getting started\n\n### Set Pi-hole container variables\n\nSet variables as defined by Pi-hole's [environment variables](https://github.com/pi-hole/docker-pi-hole/#environment-variables).\n\n```env\n# pi-hole/.env\n\nTZ=America/New_York\nWEBTHEME=default-dark\nWEBPASSWORD=my-pihole-admin-password\n```\n\n### Build \u0026 Run Pi-hole container\n\nFrom the `pi-hole/` directory, run:\n\n```bash\ndocker compose up -d\n```\n\nThe Pi-hole admin ui will be available at `http://localhost:8081/admin`\n\n### Get the Pi-hole container's IP address\n\nFrom the host machine, run:\n\n```bash\ndocker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' pihole\n```\n\n\u003e [!NOTE]\n\u003e `pihole` is the container name specified in `pi-hole/docker-compose.yml` but the container id can also be used as the last argument:\n\u003e\n\u003e ```bash\n\u003e docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' \u003ccontainer_name_or_id\u003e\n\u003e ```\n\n### Generate a Tailscale auth key\n\nSee step 2 of [Create a container for Tailscale](https://tailscale.com/kb/1453/quick-guide-docker#create-a-container-for-tailscale).\n\n### Set Tailscale container variables\n\nThe Tailscale container configuration requires the Pi-hole container's IP address and the Tailscale auth key:\n\n```env\n# tailscale/.env\n\nPIHOLE_IP=X.X.X.X\nTS_AUTHKEY=my-ts-auth-key\n```\n\n### Build \u0026 Run Tailscale container\n\nFrom the `tailscale/` directory, run:\n\n```bash\ndocker compose up -d\n```\n\n\u003e [!NOTE]\n\u003e The Tailscale container can be configured via the `tailscale/docker-compose.yml` file.\n\u003e\n\u003e See [Using Tailscale with Docker](https://tailscale.com/kb/1282/docker) for valid settings.\n\u003e\n\u003e **Re-run the build command after editing to update the container.**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsammy-t%2Fpi-net","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsammy-t%2Fpi-net","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsammy-t%2Fpi-net/lists"}