Fork from https://github.com/rdsubhas/docker-tor-privoxy-alpine
- update base image to latest Alpine 3
- update .gitignore
- update .dockerignore
- add
do
bash script for shortcuts - add
example.env
to manage nev vars and configure setup - docker service functionality
- Make sure to have Docker installed on your system.
# initialize - this create .env from example.env and checks Docker
./do init
Read .env and edit it according to your setup.
Note: if you decided to use docker network - uncomment related env var and run ./do net
docker pull illiaananich/tor-privoxy-alpine
# OR
# before building, its recommended to adjust image name/tag in .env
./do build
# get your IP for later comparison
./do get-ip
# start container (it will remove itself automatically after being stopped)
./do run
# retrieve IP using proxy
./do check-ip
# print container status
./do ps
# stop container (also removes it)
./do stop
Using Docker service requires docker swarm to be initialized or connected to, but gives ability to scale easily (docker acts as load balancer).
# create service
./do serv
# scale service
./do serv-scale 4
# print short service status
./do serv-ls
# remove service
./do serv-rm
See do
file for full list of shortcuts (logging etc).
See example.env
for full list of env vars.