k44sh/stunnel
Stunnel Docker image based on Alpine Linux
9.2K
Stunnel Docker image based on Alpine Linux.
This docker can be used with an existing stunnel
configuration using a volume (/etc/stunnel
).
Otherwise you can just adapt the environment variables to run a simple configuration.
Docker compose is the recommended way to run this image. Edit the compose file with your preferences and run the following command:
git clone https://github.com/k44sh/stunnel.git
mkdir stunnel
docker compose up -d
docker compose logs -f
You can also use the following minimal command:
docker run --rm -d --name stunnel -p 389:389 \
-e CONNECT_HOST=ldap.google.com -e CONNECT_PORT=636 \
-v $(pwd)/stunnel.crt:/etc/stunnel/stunnel.crt \
-v $(pwd)/stunnel.key:/etc/stunnel/stunnel.key \
k44sh/stunnel:latest
TZ
: The timezone assigned to the container (default UTC
)PUID
: User id (default 1000
)PGID
: User group id (default 1000
)LISTEN_HOST
: Listening server address (default 0.0.0.0
)LISTEN_PORT
: Listening server port (default 389
)CONNECT_HOST
: Remote server address (default ldap.google.com
)CONNECT_PORT
: Remote server port (default 636
)HEALTHCHECK
: Host for healthcheck (default 127.0.0.1
)To upgrade, pull the newer image and launch the container:
docker compose pull
docker compose up -d
docker pull k44sh/stunnel