[!IMPORTANT]
Please note that this heavily relies on @codedipper's work and is basically a copy of his wiki.
Step 0: Install and configure Docker.\ Step 1: Enter a root shell on the host machine.
Step 2: Clone the required git repositories to the host machine.
git clone https://github.com/Ahwxorg/LibreY.git LibreY/
git clone https://github.com/codedipper/LibreY-Tor.git LibreY-Tor/
Step 3: Configure Docker network.
docker network create --driver=bridge --subnet=172.4.0.0/16 librey_tor_net
Step 4: Manually edit LibreY-Tor/torrc
to configure Tor to your liking.
Step 5: Run it!
cd LibreY/
docker run -d --name librey --ip=172.4.0.6 --network librey_tor_net -p 8080:8080 -e TZ="America/New_York" -e CONFIG_GOOGLE_DOMAIN="com" -e CONFIG_LANGUAGE="en" -e CONFIG_NUMBER_OF_RESULTS="10" -e CONFIG_INVIDIOUS_INSTANCE="https://yt.ahwx.org" -e CONFIG_DISABLE_BITTORRENT_SEARCH=false -e CONFIG_HIDDEN_SERVICE_SEARCH=false -e CONFIG_INSTANCE_FALLBACK=true -e CONFIG_RATE_LIMIT_COOLDOWN=25 -e CONFIG_CACHE_TIME=20 -e CONFIG_DISABLE_API=false -e CONFIG_TEXT_SEARCH_ENGINE="auto" -e CURLOPT_PROXY_ENABLED=true -e CURLOPT_PROXY="172.4.0.5:9050" -e CURLOPT_PROXYTYPE="CURLPROXY_SOCKS5_HOSTNAME" -e CURLOPT_USERAGENT="Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:116.0) Gecko/20100101 Firefox/116.0" -e CURLOPT_FOLLOWLOCATION=true -v ./nginx_logs:/var/log/nginx -v ./php_logs:/var/log/php83 --restart unless-stopped ghcr.io/ahwxorg/librey:latest
docker run -d --name librey-watchtower-1 -v /var/run/docker.sock:/var/run/docker.sock containrrr/watchtower
docker run -d --name librey-librey_tor-1 --network librey_tor_net --ip=172.4.0.5 -v $PWD/../LibreY-Tor/torrc:/etc/tor/torrc ghcr.io/codedipper/librey-tor:latest
To update containers:
cd LibreY/
docker stop librey librey-watchtower-1 librey-librey_tor-1
docker rm librey librey-watchtower-1 librey-librey_tor-1
docker pull ghcr.io/ahwxorg/librey:latest
docker pull containrrr/watchtower
docker pull ghcr.io/codedipper/librey-tor:latest
# Repeat run commands
It is recommended to build the images yourself to avoid an outdated Tor version.