Dockerfile: Add torsocks binary.

This has two purposes:
1) The 'torify' wrapper is already included, and it needs torsocks.
2) Use torsocks for health checking your onion service like this:

healthcheck:
  test: ["CMD-SHELL", "torsocks nc -z <onion address> <port> || exit 1"]
  interval: 2m
This commit is contained in:
Andreas Schildbach 2020-11-27 17:32:35 +01:00 committed by Christophe Mehay
parent b451f25be9
commit 83d59f7ff0
4 changed files with 18 additions and 2 deletions

View file

@ -9,3 +9,4 @@ services:
context: .
args:
tor_version: $TOR_VERSION
torsocks_version: $TORSOCKS_VERSION