Sign inSign up

k44sh/stunnel

By k44sh

•Updated over 2 years ago

Stunnel Docker image based on Alpine Linux

Image
Security
2

10K+

k44sh/stunnel repository overview

Latest Version Docker Size Docker Pulls Build Status

⁠About

Stunnel⁠ Docker image based on Alpine Linux⁠.


⁠Features

  • Run as non-root user
  • Multi-platform image

⁠Supported platforms

  • linux/amd64
  • linux/arm64
  • linux/arm/v7

⁠Usage

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

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
⁠Command line

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
⁠Environment variables
  • 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)
⁠Upgrade

To upgrade, pull the newer image and launch the container:

docker compose pull
docker compose up -d

Tag summary

Content type

Image

Digest

sha256:79f711ec4…

Size

3.8 MB

Last updated

over 3 years ago

docker pull k44sh/stunnel