fix(cockpit): persist config and storage volumes per upstream docs

The template mounted `html:/var/www/html` (freezing the app code from the
first deploy) and `data:/var/www/html/storage/data`, which misses uploaded
assets (stored under `storage/uploads`) and cache. Per the official Cockpit
persistent-storage docs, mount `config:/var/www/html/config` and
`storage:/var/www/html/storage` instead.

Closes #549

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Mauricio Siu
2026-07-14 10:55:57 -06:00
parent 17efd705a4
commit 55aa82489d

View File

@@ -11,8 +11,8 @@ services:
- COCKPIT_DATABASE_SERVER=mongodb://${MONGO_USERNAME}:${MONGO_PASSWORD}@mongo:27017
- COCKPIT_DATABASE_NAME=cockpit
volumes:
- html:/var/www/html
- data:/var/www/html/storage/data
- config:/var/www/html/config
- storage:/var/www/html/storage
depends_on:
- mongo
@@ -25,6 +25,6 @@ services:
- mongo-data:/data/db
volumes:
html:
data:
config:
storage:
mongo-data: