Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Lanjelin/alpine-tor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 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](https://github.com/torproject/tor/blob/main/src/config/torrc.sample.in) for reference. The whole directory /home/tor` should be mounted to a persistent volume or bind-mount.
The container runs as user ID 99 by default, so mounted files should match that

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

Building

To build the image yourself

docker build -t alpine-tor .

To use a custom UID and GID (defaults are 99 and 100)

docker build --build-arg UID=991 --build-arg GID=991 -t alpine-tor .

About

Tor built and run on Docker Alpine Linux.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors 2

  •  
  •