Skip to content

Instantly share code, notes, and snippets.

@samsesh
Last active August 6, 2023 19:57
Show Gist options
  • Save samsesh/5678229ea5a1706a16197729420856f4 to your computer and use it in GitHub Desktop.
Save samsesh/5678229ea5a1706a16197729420856f4 to your computer and use it in GitHub Desktop.
tor proxy at docker-compose.yml
version: "3"
services:
tor:
image: dperson/torproxy #based on https://github.com/dperson/torproxy
hostname: tor
container_name: tor
restart: always
networks:
- tor
ports:
- 9050:9050 # socks proxy
- 8118:8118 # http proxy
environment:
#- TORUSER=tor #If set use named user instead of 'tor' (for example root)
#- BW=100 #set a tor relay bandwidth limit in KB, IE 50
#- EXITNODE=1 #allow tor traffic to access the internet from your IP
#- LOCATION=EST5EDT #configure the country to use for exit node selection
#- SERVICE=80;hostname:80 # configure hidden service, IE '80;hostname:80'
#- PASSWORD=tor #configure HashedControlPassword for control port
- TZ=EST5EDT #Configure the zoneinfo timezone, IE EST5EDT
networks:
tor:
name: tor
driver: bridge
@Docslims
Copy link

Docslims commented Aug 6, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment