https://github.com/render-examples/haproxy-example
https://github.com/render-examples/haproxy-example
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/render-examples/haproxy-example
- Owner: render-examples
- Created: 2024-01-03T06:12:14.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-03T21:35:52.000Z (almost 2 years ago)
- Last Synced: 2025-06-21T06:34:24.660Z (6 months ago)
- Language: Dockerfile
- Size: 2.93 KB
- Stars: 0
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# haproxy
Manually create `haproxy.cfg` from the template
```bash
cat haproxy.cfg.template | \
BACKEND_SLUG= \
BACKEND_PORT= \
BACKEND_HEALTHCHECK_URI= \
BACKEND_MIN_INSTANCES= \
BACKEND_MAX_INSTANCES= \
LOCAL_DOMAIN= envsubst > haproxy.cfg
```
Example:
```bash
cat haproxy.cfg.template | \
BACKEND_SLUG=backend-kuip \
BACKEND_PORT=10000 \
BACKEND_HEALTHCHECK_URI=/check \
BACKEND_MIN_INSTANCES=1 \
BACKEND_MAX_INSTANCES=5 \
LOCAL_DOMAIN=usr-bupfjt793em8dprtcjn0.svc.cluster.local envsubst > haproxy.cfg.example
```