Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/k44sh/stunnel
Stunnel Docker image based on Alpine Linux :whale2:
https://github.com/k44sh/stunnel
alpine docker stunnel
Last synced: about 1 month ago
JSON representation
Stunnel Docker image based on Alpine Linux :whale2:
- Host: GitHub
- URL: https://github.com/k44sh/stunnel
- Owner: k44sh
- License: mit
- Created: 2023-04-01T05:00:24.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-03T16:45:26.000Z (almost 2 years ago)
- Last Synced: 2024-05-02T05:01:22.485Z (8 months ago)
- Topics: alpine, docker, stunnel
- Language: Shell
- Homepage:
- Size: 351 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
## About
[Stunnel](https://stunnel.org/) Docker image based on [Alpine Linux](https://www.alpinelinux.org/).
___## 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:
```shell
git clone https://github.com/k44sh/stunnel.git && cd stunnel
mkdir stunnel
docker compose up -d
docker compose logs -f
```### Command line
You can also use the following minimal command:
```shell
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:
```shell
docker compose pull
docker compose up -d
```