feat: add ENDPOINT_MODE env override to install script for kernels without IPVS support

This commit is contained in:
Mauricio Siu
2026-07-07 09:31:56 -06:00
parent 965ea7f2df
commit 694b2df28d

View File

@@ -148,7 +148,12 @@ install_dokploy() {
# Check if running in Proxmox LXC container and set endpoint mode
endpoint_mode=""
if is_proxmox_lxc; then
if [ "$ENDPOINT_MODE" = "dnsrr" ]; then
echo "ENDPOINT_MODE=dnsrr set — adding --endpoint-mode dnsrr to Docker services."
echo "Use this on kernels without IPVS support (e.g. ZimaOS / Buildroot-based images)."
echo ""
endpoint_mode="--endpoint-mode dnsrr"
elif is_proxmox_lxc; then
echo "⚠️ WARNING: Detected Proxmox LXC container environment!"
echo "Adding --endpoint-mode dnsrr to Docker services for LXC compatibility."
echo "This may affect service discovery but is required for LXC containers."