mirror of
https://github.com/Dokploy/templates.git
synced 2026-07-15 14:52:05 -05:00
[PR #996] [MERGED] fix(cockpit): persist config and storage volumes per upstream docs #16304
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Dokploy/templates/pull/996
Author: @Siumauricio
Created: 7/14/2026
Status: ✅ Merged
Merged: 7/14/2026
Merged by: @Siumauricio
Base:
canary← Head:fix/cockpit-volumes📝 Commits (1)
55aa824fix(cockpit): persist config and storage volumes per upstream docs📊 Changes
1 file changed (+4 additions, -4 deletions)
View changed files
📝
blueprints/cockpit/docker-compose.yml(+4 -4)📄 Description
Problem
The Cockpit CMS template mounts the wrong paths:
html:/var/www/htmlmounts a named volume over the whole app directory, which freezes the application code at whatever the image contained on the very first deploy (image updates never take effect).data:/var/www/html/storage/dataonly persists thestorage/datasubfolder, so uploaded assets (storage/uploads) and the rest ofstorage/are lost when the container is recreated / the system is pruned.Fix
Mount exactly what the official Cockpit persistent-storage docs recommend:
storage/holds user uploads, cache and data;config/holds configuration files. The MongoDB volume is unchanged.Evidence
Deployed the updated template on a Dokploy instance: deploy finished in 72s, all containers running, and the app responds with HTTP 200 (
<title>Cockpit</title>) on its generated domain.Note for existing installs
This changes volume names/paths, so existing deployments of this template will start with fresh
config/storagevolumes. Users who already run the old template need to migrate their data from the oldhtml/datavolumes manually.Closes #549
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.