[Unit] Description=Auto-start Coolify LXC + Docker stack + Cloudflare tunnel after boot # Managed by the Proxmox & Coolify Manager repo (scripts/host/coolify-autostart.service). # Run after Proxmox has processed onboot guests and the network is up. This is a # self-healing safety net on top of the LXC onboot flag and Docker restart # policies, not a replacement for them. After=pve-guests.service network-online.target Wants=pve-guests.service network-online.target # Bound retries so a genuinely broken stack doesn't loop forever. StartLimitIntervalSec=3600 StartLimitBurst=3 [Service] Type=oneshot ExecStart=/usr/local/bin/coolify-autostart.sh RemainAfterExit=yes # Must stay above the script's own budget (COOLIFY_MAX_WAIT 600 + COOLIFY_SETTLE # 180 + step overhead). The old 300 s killed the guardian mid-wait on every real # boot: the `coolify` container only starts ~7m40s after power-on. TimeoutStartSec=1200 Restart=on-failure RestartSec=60 [Install] WantedBy=multi-user.target