https://github.com/dweomer/dockerfiles-stunnel
secure services with stunnel
https://github.com/dweomer/dockerfiles-stunnel
docker-container docker-image dockerfile stunnel
Last synced: 2 days ago
JSON representation
secure services with stunnel
- Host: GitHub
- URL: https://github.com/dweomer/dockerfiles-stunnel
- Owner: dweomer
- License: mit
- Created: 2015-08-18T08:03:39.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-10-04T22:46:53.000Z (over 2 years ago)
- Last Synced: 2024-04-16T00:15:12.484Z (almost 2 years ago)
- Topics: docker-container, docker-image, dockerfile, stunnel
- Language: Shell
- Homepage: https://hub.docker.com/r/dweomer/stunnel
- Size: 18.6 KB
- Stars: 65
- Watchers: 5
- Forks: 74
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# dweomer/stunnel
[](https://hub.docker.com/r/dweomer/stunnel/) [](https://hub.docker.com/r/dweomer/stunnel/) [](https://microbadger.com/images/dweomer/stunnel "Get your own image badge on microbadger.com") [](https://microbadger.com/images/dweomer/stunnel "Get your own version badge on microbadger.com")
## Stunnel on Alpine
To secure an LDAP container named `directory`:
```
docker run -itd --name ldaps --link directory:ldap \
-e STUNNEL_SERVICE=ldaps \
-e STUNNEL_ACCEPT=636 \
-e STUNNEL_CONNECT=ldap:389 \
-p 636:636 \
# -v /etc/ssl/private/server.key:/etc/stunnel/stunnel.key:ro \
# -v /etc/ssl/private/server.crt:/etc/stunnel/stunnel.pem:ro \
dweomer/stunnel
```
### Copyright Notice
>The [MIT License](LICENSE.txt) ([MIT](https://opensource.org/licenses/MIT))
>
> Copyright © 2015-2023 [Jacob Blain Christen](https://github.com/dweomer)
>
> Permission is hereby granted, free of charge, to any person obtaining a copy of
> this software and associated documentation files (the "Software"), to deal in
> the Software without restriction, including without limitation the rights to
> use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
> the Software, and to permit persons to whom the Software is furnished to do so,
> subject to the following conditions:
>
> The above copyright notice and this permission notice shall be included in all
> copies or substantial portions of the Software.
>
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
> FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
> COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
> IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
> CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.