Public | Automated Build

Last pushed: a month ago
Short Description
tor hidden service
Full Description


This is the revised version from cmehay/docker-tor-hidden-service which has the following extra features

  • survives a docker restart of the service instead of adding the same service over and over in the config file
  • and saves the keys in the directory with the name of the onion

Wordpress example

 $ docker-compose -f docker-compose-wordpress.yml up

RabbitMQ example

 $ docker-compose -f docker-compose-rabbitmq.yml up


Link a docker container and create a tor hidden service from it

# run a container with an network application
$ docker run -d \
    --name hello_world \

# and just link it to this container
$ docker run -ti \
    --link hello_world \

The .onion url is displayed to stdout at startup.

To keep onion keys, just mount volume /var/lib/tor/hidden_service/

$ docker run -ti \
    --link some_service \
    --volume /path/to/keys:/var/lib/tor/hidden_service/ \

Look at the docker-compose.yml file to see how to use it.

Docker Pull Command