unifios-utilities/haproxy/50-haproxy.sh
Jordan Jones e8951ae5df
Add example of how to integrate haproxy (#239)
* add: haproxy scripts

* add: haproxy readme

I am really bad at writing instructions.
2021-10-08 18:30:21 -07:00

13 lines
387 B
Bash

#!/bin/sh
CONTAINER=haproxy
# Starts a cloudflare ddns container that is deleted after it is stopped.
# All configs stored in /mnt/data/cloudflare-ddns
if podman container exists "$CONTAINER"; then
podman start "$CONTAINER"
else
podman run -d --net=host --restart always \
--name haproxy \
--hostname ha.proxy \
-v "/mnt/data/haproxy/:/usr/local/etc/haproxy/" \
haproxy:latest