Sign inSign up

inmean/webserver-tor

By inmean

•Updated over 5 years ago

Build your own tor hidden services with Alpine Linux, Nginx and PHP 7 FPM

Image
0

10K+

inmean/webserver-tor repository overview

⁠Tor + Nginx + PHP 7 FPM Web Server on Alpine Linux

Build your own tor hidden services with Alpine Linux, Nginx and PHP 7 FPM

⁠Usage
sudo docker run -d --name=nginx -p 80 -v $PWD/html:/var/www/html -e db_name=database -e db_user=username -e db_pass=password inmean/webserver-tor
⁠.ONION

Tor hostname will automatically generate for the first start. To use your own Tor Hidden Services Hostname version 3 please copy hostname file or map volume to /var/www/tor_host directory

docker run -v your_hostname_path:/var/www/tor_host ...
⁠Fixed alpine error on openrc
Map volume for /sys/fs/cgroup
⁠Environment Variable

The environment variable will generate into env.php file and copy into /var/www/html each time container restart

  • db_host
  • db_name
  • db_user
  • db_pass
  • memcache_host
  • memcache_user

Extend use to create your own docker use following Dockerfile script to start services automatically

EXPOSE 80
CMD ["sh", "/var/www/start.sh"]
⁠How to display PHP Error?

Just include following PHP code

error_reporting(-1);
ini_set('display_errors', 'On');

Tag summary

Content type

Image

Digest

Size

35 MB

Last updated

over 5 years ago

docker pull inmean/webserver-tor