forked from hnhx/librex
-
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: merge pull request #146 from codedipper/docs-tor-prebuilt-run
docs: docs/docker-compose-prebuilt-tor-proxy.md, docs/docker-run-prebuilt-tor-proxy.md
- Loading branch information
Showing
2 changed files
with
46 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
> [!IMPORTANT] | ||
> Please note that this heavily relies on [@codedipper](https://github.com/codedipper)'s [work and is basically a copy of his wiki](https://github.com/codedipper/LibreY-Tor/wiki/LibreY-Tor-Proxy-‐-Prebuilt-images-with-run). | ||
|
||
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. | ||
|
||
```sh | ||
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. | ||
|
||
```sh | ||
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! | ||
```sh | ||
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: | ||
|
||
```sh | ||
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. |