#!/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