{"id":41173740,"url":"https://github.com/ha1fdan/hidden-service-docker","last_synced_at":"2026-01-22T19:50:27.366Z","repository":{"id":186338148,"uuid":"675021976","full_name":"ha1fdan/hidden-service-docker","owner":"ha1fdan","description":"A docker-compose file for a Tor hidden service with nginx as the webserver to serve a static website on Tor.","archived":false,"fork":false,"pushed_at":"2025-11-08T08:35:18.000Z","size":50,"stargazers_count":18,"open_issues_count":1,"forks_count":10,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-11-08T10:16:07.592Z","etag":null,"topics":["docker","tor"],"latest_commit_sha":null,"homepage":"https://www.youtube.com/watch?v=SuDlJTV11n8","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ha1fdan.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-08-05T14:14:37.000Z","updated_at":"2025-11-08T08:35:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"c62e4ad4-0331-4a42-b506-590de1689355","html_url":"https://github.com/ha1fdan/hidden-service-docker","commit_stats":null,"previous_names":["halfdandk/hidden-service-docker","ha1fdan/hidden-service-docker"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ha1fdan/hidden-service-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ha1fdan%2Fhidden-service-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ha1fdan%2Fhidden-service-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ha1fdan%2Fhidden-service-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ha1fdan%2Fhidden-service-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ha1fdan","download_url":"https://codeload.github.com/ha1fdan/hidden-service-docker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ha1fdan%2Fhidden-service-docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28669720,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T19:36:09.361Z","status":"ssl_error","status_checked_at":"2026-01-22T19:36:05.567Z","response_time":144,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","tor"],"created_at":"2026-01-22T19:50:26.688Z","updated_at":"2026-01-22T19:50:27.361Z","avatar_url":"https://github.com/ha1fdan.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tor Hidden Service with Docker Compose\n\nCreate and deploy a Tor hidden service using Docker Compose. This project provides a simple setup to host a static HTML webpage as a Tor hidden service using Nginx within Docker containers. The hidden service's hostname is customizable, allowing you to create your own secure and private .onion address on the Tor network.\n\n## Getting Started\n\nThese instructions will help you clone and set up the project on your local machine.\n\n### Prerequisites\n\n- Git\n- Docker\n- Docker Compose\n\n### Clone the Repository\n\nClone this repository to your local machine using the following command:\n\n```bash\ngit clone https://github.com/ha1fdan/hidden-service-docker.git\ncd hidden-service-docker\n```\n\n### Configuration\n\nPrepare your HTML content and place it in the `html` directory.\n\nThe Tor hidden service keys are **not** baked into the Docker image. Instead, the container reads them from the `data` directory at runtime. Mounting the directory keeps your private keys out of the image and avoids accidentally publishing them to a registry.\n\n- If you already have a hidden service you would like to reuse, copy its `hostname`, `hs_ed25519_public_key`, and `hs_ed25519_secret_key` files into the `data` directory before starting the containers.\n- If the directory is empty, Tor will generate a new hidden service and place the keys in `data` the first time it starts.\n\n#### Upload Custom Vanity Address (Optional)\n\nIf you have your own vanity address files that you want to use for your Tor hidden service, follow these steps:\n\n1. Generate or obtain your custom vanity address files, including the `hs_ed25519_public_key`, `hs_ed25519_secret_key` and `hostname`. You can use tools like [mkp224o](https://github.com/cathugger/mkp224o) to generate vanity addresses.\n\n2. Place your vanity address files in a volume or hostpath mounted to the /data directory in the container. Make sure the `hostname` file contains your desired vanity address.\n\n### Launch the Hidden Service\n\n1. Run the following command to start the containers and launch your hidden service:\n\n```bash\ndocker compose up -d\n```\n\n2. Access your hidden service through the generated .onion address. The address is printed when the Tor container starts, or you can find it in the Tor logs by running:\n\n```bash\ndocker compose logs tor\n```\n\n## Note\n\nThis project is for educational and demonstrative purposes. When deploying hidden services in production environments, additional security measures and configurations are recommended.\n\n## Contributions\n\nContributions and improvements are welcome! Feel free to open issues or pull requests if you have suggestions or enhancements.\n\n## Video Showcase\nhttp://www.youtube.com/watch?v=SuDlJTV11n8\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fha1fdan%2Fhidden-service-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fha1fdan%2Fhidden-service-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fha1fdan%2Fhidden-service-docker/lists"}