/docker-tor-privoxy-alpine

The smallest (15 MB!!) docker image with Tor and Privoxy on Alpine Linux

Primary LanguageShellMIT LicenseMIT

tor-privoxy-alpine

Fork from https://github.com/rdsubhas/docker-tor-privoxy-alpine

Changes:

  • 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

Usage

  • Make sure to have Docker installed on your system.

1. init

# initialize - this create .env from example.env and checks Docker
./do init

2. check .env

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

3. (optional) build/pull Docker image

docker pull illiaananich/tor-privoxy-alpine
# OR
# before building, its recommended to adjust image name/tag in .env
./do build

3.a. as Docker container

# 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

3.b as Docker service

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.