https://github.com/ivanvc/docker-haproxy
HAProxy docker image
https://github.com/ivanvc/docker-haproxy
Last synced: 10 months ago
JSON representation
HAProxy docker image
- Host: GitHub
- URL: https://github.com/ivanvc/docker-haproxy
- Owner: ivanvc
- Created: 2015-03-22T03:09:31.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-08-28T21:09:53.000Z (almost 11 years ago)
- Last Synced: 2025-01-23T20:53:13.136Z (over 1 year ago)
- Language: Shell
- Homepage: https://registry.hub.docker.com/u/ivan/haproxy/
- Size: 168 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker HAProxy
This is a simple docker image, that runs haproxy and forwards some selected ports
(see files/haproxy.cfg.tmpl) to different docker containers using etcd (and
confd).
It will search for directories inside `/services/boxes`. Where the last path name
is the name of the machine, the value should be a JSON with an IP.
For example:
```json
// /services/boxes/foo
{ "IP": "172.14.7.2" }
```
Then it will forward foo.example.com:3000 (assuming a DNS A record) to the foo
container. It should have Docker's network mode to host.
## Running
```
docker build -t ivan/haproxy:latest .
docker run --net=host ivan/haproxy
```
## License
MIT