add docker-socker-proxy

This commit is contained in:
2022-06-18 22:01:34 +02:00
parent 7a72469a5f
commit ea74b3999e
11 changed files with 636 additions and 3 deletions

View File

@@ -0,0 +1,20 @@
#!/bin/sh
set -e
bashio /settings.sh
. /variables.sh
# first arg is `-f` or `--some-option`
if [ "${1#-}" != "$1" ]; then
set -- haproxy "$@"
fi
if [ "$1" = 'haproxy' ]; then
shift # "haproxy"
# if the user wants "haproxy", let's add a couple useful flags
# -W -- "master-worker mode" (similar to the old "haproxy-systemd-wrapper"; allows for reload via "SIGUSR2")
# -db -- disables background mode
set -- haproxy -W -db "$@"
fi
exec "$@"