docker: Do not foreground by default, this should be a choice

It is weird that when invoking sslh, that it daemonizess in foreground by
default. This should always be a user choice, and if not, it should be a
program default.

Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
This commit is contained in:
Olliver Schinagl 2023-06-04 09:24:28 +02:00
parent 20764074cb
commit 295dba93b5
No known key found for this signature in database
GPG Key ID: 96E1A3A6C9044763
2 changed files with 6 additions and 5 deletions

View File

@ -20,4 +20,4 @@ COPY --from=build "/sslh/sslh-select" "/usr/local/bin/sslh"
RUN apk --no-cache add libconfig pcre2
ENTRYPOINT [ "/usr/local/bin/sslh", "--foreground" ]
ENTRYPOINT [ "/usr/local/bin/sslh" ]

View File

@ -50,6 +50,7 @@ docker run \
--rm \
-it \
ghcr.io/yrutschle/sslh:latest \
--foreground \
--listen=0.0.0.0:443 \
--ssh=hostname:22 \
--tls=hostname:443
@ -66,7 +67,7 @@ services:
hostname: sslh
ports:
- 443:443
command: --listen=0.0.0.0:443 --tls=nginx:443 --openvpn=openvpn:1194
command: --foreground --listen=0.0.0.0:443 --tls=nginx:443 --openvpn=openvpn:1194
depends_on:
- nginx
- openvpn