wordpress (tor edition)
deine erste zensur-resistente website
video: https://peertube.satoshishop.de/w/mv54mzwUXvjvsCNCnb2Gij
docker-compose.yml
version: '2'
services:
tor:
image: goldy/tor-hidden-service:latest
restart: unless-stopped
environment:
WORDPRESS_TOR_SERVICE_VERSION: '3'
WORDPRESS_TOR_SERVICE_HOSTS: 80:wordpress:80
TOR_SOCKS_PORT: ${LocalNetwork:-192.168.96}.254:9050
TOR_EXTRA_OPTIONS: |
DNSPort ${LocalNetwork:-192.168.96}.254:53
AutomapHostsOnResolve 1
HeartbeatPeriod 1 hours
volumes:
- ./volumes/tor/keys:/var/lib/tor/hidden_service/
- ./volumes/tor/data:/run/tor/data
networks:
no-internet:
ipv4_address: ${LocalNetwork:-192.168.96}.254
internet:
dns_search: example.com
dns:
- 127.0.0.1
database:
image: mysql
restart: unless-stopped
volumes:
- ./volumes/db_data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: EjKmhpbUBWpH7zHQaSmVDrNd43FFbB
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: EjKmhpbUBWpH7zHQaSmVDrNd43FFbB
networks:
no-internet:
dns_search: example.com
dns:
- ${LocalNetwork:-192.168.96}.254
wordpress:
image: wordpress:latest
restart: unless-stopped
volumes:
- ./volumes/wp_data:/var/www/html
environment:
WORDPRESS_DB_HOST: database:3306
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: EjKmhpbUBWpH7zHQaSmVDrNd43FFbB
WORDPRESS_CONFIG_EXTRA: |
define('WP_PROXY_HOST', 'socks5://tor');
define('WP_PROXY_PORT', '9050');
networks:
no-internet:
dns_search: example.com
dns:
- ${LocalNetwork:-192.168.96}.254
networks:
internet: {}
no-internet:
internal: true
ipam:
driver: default
config:
- subnet: ${LocalNetwork:-192.168.96}.0/24
docker-container stoppen und löschen
$ docker-compose down
docker-container erstellen und starten
$ docker-compose up -d