説明なし

Fabian Peter Hammerle e3fb171bd4 split COPY --chown in COPY & RUN chmod to increase backward compatibility 5 年 前
Dockerfile e3fb171bd4 split COPY --chown in COPY & RUN chmod to increase backward compatibility 5 年 前
README.md b0d1116368 set onion svc version via $VERSION, default: v3 5 年 前
entrypoint.sh b0d1116368 set onion svc version via $VERSION, default: v3 5 年 前
torrc.template b0d1116368 set onion svc version via $VERSION, default: v3 5 年 前

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

defaults to creating a v3 service

example 1

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

example 2

$ docker create --name onion-service \
    --env VERSION=3 \
    --env VIRTUAL_PORT=80 \
    --env TARGET=1.2.3.4:8080 \
    --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
abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqrst.onion