Phase 25: templates as stack folders (0.31.0)
Templates are now stack-shaped folders (compose.yaml + .env.example +
template.json) instead of DB rows + manifest.json + {{VAR}} rendering.
Pull copies the folder into a new stack; custom templates persist under
DATA_DIR/templates. Adds POST /api/templates/from-stack and a one-time
startup migration for pre-0.31 DB templates (drops the template table).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
34cb215266
commit
1609b8bcc3
@@ -65,8 +65,12 @@ as intuitive as Dockge, as capable as Portainer for Compose workflows.
|
||||
- **Port conflict detector**: pre-deploy check against host-bound ports
|
||||
(`/proc/net/tcp[6]`) and running container bindings, with a confirm dialog.
|
||||
- **Resource limits**: CPU/memory sliders in the editor → `deploy.resources.limits`.
|
||||
- **Template library**: bundled templates (Jellyfin, Vaultwarden, Uptime-Kuma,
|
||||
Paperless-NGX, Gitea) with `{{VARIABLE}}` forms; save any stack as a custom template.
|
||||
- **Template library**: each template is a ready-to-run **stack folder** in git
|
||||
(`backend/templates/<slug>/` — `compose.yaml` + `.env.example` + `template.json`).
|
||||
Bundled set: Jellyfin, Vaultwarden, Uptime-Kuma, Paperless-NGX, Gitea. "Pull"
|
||||
copies the whole folder into a new stack (`.env.example` → `.env`) which you then
|
||||
edit and deploy. Save any stack back as a custom template (stored under
|
||||
`${DATA_DIR}/templates/`). Add your own by dropping a folder into the templates dir.
|
||||
- **Healthcheck status** surfaced per container in the stack overview.
|
||||
|
||||
### Phase 4 — Operations
|
||||
@@ -434,7 +438,7 @@ POST /api/editor/services | add-volume | set-gpu | add-device | remove-device
|
||||
GET /api/images | /updates POST /api/images/check
|
||||
POST /api/ports/conflicts POST /api/editor/set-resources
|
||||
GET /api/templates | /{id} POST /api/templates/{id}/instantiate
|
||||
POST /api/templates DELETE /api/templates/custom/{slug}
|
||||
POST /api/templates | /from-stack DELETE /api/templates/custom/{slug}
|
||||
```
|
||||
|
||||
### Phase 4 endpoints
|
||||
|
||||
Reference in New Issue
Block a user