{"id":17091027,"url":"https://github.com/lu4p/tor-docker","last_synced_at":"2025-04-12T22:31:38.879Z","repository":{"id":44897194,"uuid":"220337527","full_name":"lu4p/tor-docker","owner":"lu4p","description":"Tor in a docker container. Just ~6MB in size.","archived":false,"fork":false,"pushed_at":"2022-01-20T02:09:57.000Z","size":8,"stargazers_count":11,"open_issues_count":0,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-26T16:38:50.062Z","etag":null,"topics":["docker","docker-compose","docker-image","tor","tor-hidden-services","tor-network"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/lu4p/tor","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lu4p.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}},"created_at":"2019-11-07T22:06:04.000Z","updated_at":"2024-10-07T08:51:02.000Z","dependencies_parsed_at":"2022-07-21T15:43:06.618Z","dependency_job_id":null,"html_url":"https://github.com/lu4p/tor-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lu4p%2Ftor-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lu4p%2Ftor-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lu4p%2Ftor-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lu4p%2Ftor-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lu4p","download_url":"https://codeload.github.com/lu4p/tor-docker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248640045,"owners_count":21137963,"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","docker-image","tor","tor-hidden-services","tor-network"],"created_at":"2024-10-14T13:57:22.523Z","updated_at":"2025-04-12T22:31:38.855Z","avatar_url":"https://github.com/lu4p.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tor docker image\n[![Docker Cloud Build Status](https://img.shields.io/docker/cloud/build/lu4p/tor)](https://hub.docker.com/r/lu4p/tor)\n[![](https://images.microbadger.com/badges/image/lu4p/tor.svg)](https://microbadger.com/images/lu4p/tor \"Get your own image badge on microbadger.com\")\n[![Docker Pulls](https://img.shields.io/docker/pulls/lu4p/tor)](https://hub.docker.com/r/lu4p/tor)\n\n# Example usage with docker-compose\n### 1. Create tor-example directory\n```\nmkdir tor-example\ncd tor-example\n```\n### 2. Create a docker-compose.yml with the following content\n```yaml\nversion: \"3\"\nvolumes:\n  nextcloud:\nservices:\n  tor:\n    image: tor\n    volumes:\n       - ./tor:/var/lib/tor/ \n       - ./torrc:/etc/tor/torrc\n    restart: always\n  nextcloud:\n    image: nextcloud\n    volumes:\n      - nextcloud:/var/www/html\n    restart: always\n```\n\n\n### 3. Create the tor config\n- torrc documentation https://2019.www.torproject.org/docs/tor-manual.html.en\n\n```\n$ nano ./torrc\nHiddenServiceDir /var/lib/tor/hs/\nHiddenServicePort 80 nextcloud:80\n```\n\n\n### 4. Start docker-compose\n```\nsudo docker-compose up -d\n```\n\n### 5. Get the onion address (hostname)\n```\nsudo cat ./tor/hs/hostname\n```\nOutput: youronionaddress.onion\n\n### 6. Access Nextcloud over Tor\nDownload and install Tor Browser from https://www.torproject.org/download/\n\nNow Nextcloud can be accessed at http://youronionaddress.onion from any Tor Browser.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flu4p%2Ftor-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flu4p%2Ftor-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flu4p%2Ftor-docker/lists"}