Public | Automated Build

Last pushed: 2 years ago
Short Description
Minimalistic rotate tor docker image based on Alpine Linux (~27MB)
Full Description


               Docker Container
                       <-> Tor Proxy 1
Client <---->  HAproxy <-> Tor Proxy 2
                       <-> Tor Proxy n


Why: Lots of IP addresses. One single endpoint for your client.
Load-balancing by HAproxy.


# build docker container
docker build -t negash/docker-haproxy-tor:latest .

# ... or pull docker container
docker pull negash/docker-haproxy-tor:latest

# start docker container
docker run -d -p 5566:5566 -p 2090:2090 -e tors=25 negash/docker-haproxy-tor

# test with ...
curl --socks5

# monitor 
# auth login:admin
# auth pass:admin

# start docket container with new auth
docker run -d -p 5566:5566 -p 2090:2090 -e login=MySecureLogin -e pass=MySecurePassword negash/docker-haproxy-tor

Further Readings

Docker Pull Command
Source Repository

Comments (1)
5 months ago

Doesn't give me a response and errors eventually like this...

/usr/local/bin/start.rb:213:in `sleep': can't convert String into time interval (TypeError)
    from /usr/local/bin/start.rb:213:in `block (2 levels) in <main>'
    from /usr/local/bin/start.rb:209:in `each'
    from /usr/local/bin/start.rb:209:in `block in <main>'
    from /usr/local/bin/start.rb:207:in `loop'
    from /usr/local/bin/start.rb:207:in `<main>'
D, [2017-05-31T02:08:19.287940 #5] DEBUG -- : running: /usr/bin/tor --SocksPort 10000 --NewCircuitPeriod 120 --DataDirectory /var/lib/tor/10000 --PidFile /var/run/tor/ --Log "warn syslog" --RunAsDaemon 1 | logger -t 'tor' 2>&1
I, [2017-05-31T02:08:19.288987 #5]  INFO -- : sleeping for 25 seconds