Skip to content

Lanjelin/alpine-tor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

alpine-tor

Tor built and run on Alpine Linux.
Set up a hidden service, exit relay or a socks proxy by deploying a container and editing the torrc-file directly.

Application Setup

A valid torrc-file needs to be available inside the container at /home/tor/torrc, see torrc.example or the official sample for more info.
The whole directory /home/tor should be mounted to a persistent volume or bind-mount.
The container is run by user id 99, and mounted directory /path/to/config:/home/tor with its files will have to have the same owner id.

sudo chown -R 99 /path/to/config

Usage

Some snippets to get you started.

docker-compose

services:
  tor:
    image: ghcr.io/lanjelin/alpine-tor:latest
    container_name: tor
    environment:
      - TZ=Europe/Berlin
    ports:
      - "9050:9050" #socks
      - "9051:9051" #control port
    volumes:
      - /path/to/config:/home/tor
    restart: unless-stopped

docker cli

docker run -d \
  --name=tor \
  -e TZ=Europe/Berlin \
  -p 9050:9050 \
  -v /path/to/config:/home/tor \
  --restart unless-stopped \
  ghcr.io/lanjelin/alpine-tor:latest

About

Tor built and run on Docker Alpine Linux.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published