A container to host website on Tor hidden service with .onion address. Tor is free software and an open network that helps you defend against traffic analysis, enabling anonymous communication. ".onion" is a special-use top level domain name designating a "hidden service" on the Dark Web, reachable via the Tor network/accessed via the Tor browser.
Container Image: View on DockerHub
★ Run container:
docker container run -it --name <container_name> sandeshy/torwebsite:latest
Note: To exit from running container without stopping press ctrl+p+q.
★ Check your .onion addresss
torhost
★ Open the address in tor browser:
★ Attach volume, overrides default HTML template:
docker container run -it --name <container_name> \
-v </some/path/on/hostOS>:/var/www/hidden_service \
sandeshy/torwebsite:latest
* Tor config - /etc/tor/torrc
* Nginx config - /etc/nginx/http.d/nginx.conf
/var/log/nginx
Will I get new .onion address each time?
Onion address is generated for each new container, if you are using the same container it won't change ever.
Are any ports exposed?
No, tor is running inside container which connects to Network using Virtual Ethernet.
How much time it takes for website to get live?
5-8 seconds with normal Internet Speed. If your connectivity is weak, try waiting for few mins till Tor picks some relay as introduction point and adds new entry in Distributed Hash Table (DHT). More info here.
Underlying services ?
rc-service tor status
rc-service nginx status
TorWebsite is created to make hosting website on Tor easy and it's not responsible for any misuse or illegal purposes.
Feel free to discuss any issue or new feature at GitHub Discussions.
TorWebsite is under the terms of the GNU General Public License.