Ingen beskrivning

Fabian Peter Hammerle c8a37c1cfd readme: added url to github repo 5 år sedan
Dockerfile 33cde65440 single onion service $VIRTUAL_PORT -> $TARGET 5 år sedan
README.md c8a37c1cfd readme: added url to github repo 5 år sedan
torrc.template 33cde65440 single onion service $VIRTUAL_PORT -> $TARGET 5 år sedan

README.md

docker: hidden tor .onion service

repo: https://github.com/fphammerle/docker-onion-service

docker hub: https://hub.docker.com/r/fphammerle/onion-service

example 1

$ docker run --name onion-service \
    -e VIRTUAL_PORT=80 -e TARGET=1.1.1.1:80 \
    fphammerle/onion-service

example 2

$ docker create --name onion-service \
    --env VIRTUAL_PORT=80 \
    --env TARGET=1.1.1.1:80 \
    --volume onion-key:/onion-service \
    --restart unless-stopped \
    --cap-drop all --security-opt no-new-privileges \
    fphammerle/onion-service:latest

$ docker start onion-service

retrieve hostname

$ docker exec onion-service cat /onion-service/hostname
abcdefghijklmnop.onion