You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add POST /system/service/{name}/recreate for Docker Compose service recreation
Add endpoint for recreating Docker Compose services via `docker compose
up -d`. Used by API for Pi-hole password sync — the API container lacks
the compose plugin, so it delegates to HAL which runs on the host.
Allowlisted services: pihole. Gated by requireFullTier.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
// composeServiceAllowlist restricts which Docker Compose services can be recreated.
761
+
varcomposeServiceAllowlist=map[string]string{
762
+
"pihole": "/cubeos/coreapps/pihole/appconfig",
763
+
}
764
+
765
+
// RecreateComposeService runs `docker compose up -d` for a whitelisted service.
766
+
// @Summary Recreate Docker Compose service
767
+
// @Description Recreates a Docker Compose service by running `docker compose up -d` in its appconfig directory. Used when environment changes require container recreation (e.g. Pi-hole password sync).
768
+
// @Tags System
769
+
// @Accept json
770
+
// @Produce json
771
+
// @Param name path string true "Service name (must be in allowlist)" example(pihole)
772
+
// @Success 200 {object} SuccessResponse
773
+
// @Failure 400 {object} ErrorResponse "Invalid service name"
774
+
// @Failure 403 {object} ErrorResponse "Service not in allowlist"
0 commit comments