Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joeybaker/docker-bud-tls
Docker container for bud-tls
https://github.com/joeybaker/docker-bud-tls
Last synced: 6 days ago
JSON representation
Docker container for bud-tls
- Host: GitHub
- URL: https://github.com/joeybaker/docker-bud-tls
- Owner: joeybaker
- Created: 2014-07-11T22:30:54.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-12-08T16:02:26.000Z (about 8 years ago)
- Last Synced: 2025-01-05T13:34:05.946Z (10 days ago)
- Language: Shell
- Homepage: https://byjoeybaker.com/easy-ssl-setup-with-docker-and-bud-tls
- Size: 19.5 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker container for [bud-tls](https://github.com/indutny/bud) [![Docker Pulls](https://img.shields.io/docker/pulls/joeybaker/bud-tls.svg)](https://registry.hub.docker.com/u/joeybaker/bud-tls/)
Docker container for Bud, a TLS terminator for superheroes.
## Dependencies
[dockerfile/nodejs](https://github.com/dockerfile/nodejs)
## Installation
1. Install [Docker](https://www.docker.io/).
2. `docker pull joeybaker/bud-tls`
## Usage
### default usage
Create a folder that contains your bud config and all certs. This will live at `/data` in the container, so refer to the certs by this absolute path in your config.Sample directory to mount as `/data`
```bash
ls ~/bud
keys
- key.pem
- cert.pem
bud.json
```Sample `bud.json`.
```json
{
"workers": 1,
"user": "bud", // specify the user and group.
"group": "bud",
"frontend": {
"port": 443,
"host": "0.0.0.0",
"cert": "/data/keys/cert.pem", // your keys are now relative to /data
"key": "/data/keys/key.pem",
},
"balance": "roundrobin",
"backend": [{
"port": 8000,
"host": "backend_op", // you must set to this string to connect to the docker host
}]
}
``````bash
sudo docker run -d -v ~/bud:/data -p 443:443 --name bud joeybaker/bud-tls
```### forward a port for another docker container
In your bud.json
```json
"backend": [{
"port": backend_port, // must be set to backend_port so the config script can dynamicall replace with the other container's port
"host": "backend_ip", // must set to backend_ip so the config script can dynamically replace this with the other container's ip
}]
```Then, run the docker command with `--link`. `` is the name of the container you want to expose. You must expose it as `backend`.
```bash
sudo docker run -d -v ~/bud:/data -p 443:443 --link :backend --name bud joeybaker/bud-tls
```## Developing
```bash
sudo docker build -t joeybaker/bud-tls .
```Pushes to master on this repo will update the [official docker registry image](https://registry.hub.docker.com/u/joeybaker/bud-tls/).