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:
parent
b451f25be9
commit
83d59f7ff0
4 changed files with 18 additions and 2 deletions
2
last_torsocks_version.sh
Executable file
2
last_torsocks_version.sh
Executable file
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
git ls-remote --tags https://git.torproject.org/torsocks.git | grep -oE 'v[0-9]+\.[0-9]+\.[0-9]+$' | sort -V | tail -1
|
||||
Loading…
Add table
Add a link
Reference in a new issue