docker-tor-hidden-service/README.md

44 lines
1.2 KiB
Markdown
Raw Normal View History

# docker-tor-hidden-service
2015-09-21 17:42:48 +02:00
Create a tor hidden service with a link
2016-03-21 23:36:16 +01:00
```sh
2016-03-21 23:54:30 +01:00
# run a container with a network application
2015-09-21 17:42:48 +02:00
$ docker run -d --name hello_world tutum/hello_world
# and just link it to this container
2015-09-21 17:42:48 +02:00
$ docker run -ti --link hello_world goldy/tor-hidden-service
```
2016-03-21 23:54:30 +01:00
The .onion URLs are displayed to stdout at startup.
2015-09-21 17:42:48 +02:00
To keep onion keys, just mount volume `/var/lib/tor/hidden_service/`
2016-03-21 23:36:16 +01:00
```sh
2015-09-21 17:42:48 +02:00
$ docker run -ti --link something --volume /path/to/keys:/var/lib/tor/hidden_service/ goldy/tor-hidden-service
```
2016-03-21 23:54:30 +01:00
Look at the `docker-compose.yml` file to see how to use it.
2016-03-07 03:43:12 +01:00
2016-03-21 23:36:16 +01:00
### Tools
A command line tool `onions` is available in container to get `.onion` url when container is running.
```sh
# Get services
$ docker exec -ti torhiddenproxy_tor_1 onions
hello: vegm3d7q64gutl75.onion
world: b2sflntvdne63amj.onion
# Get json
$ docker exec -ti torhiddenproxy_tor_1 onions --json
{"world": "b2sflntvdne63amj.onion", "hello": "vegm3d7q64gutl75.onion"}
```
2016-03-07 03:43:12 +01:00
### pyentrypoint
This container is using [`pyentrypoint`](https://github.com/cmehay/pyentrypoint) to generate its setup.
2016-03-21 23:54:30 +01:00
If you need to use the legacy version, please checkout the `legacy` branch or pull `goldy/tor-hidden-service:legacy`.