Files
templates/blueprints/cockpit/docker-compose.yml
Mauricio Siu 55aa82489d 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>
2026-07-14 10:55:57 -06:00

30 lines
666 B
YAML

version: "3"
services:
cockpit:
image: cockpithq/cockpit:core-2.11.0
ports:
- "80"
environment:
- COCKPIT_SESSION_NAME=cockpit
- COCKPIT_SALT=${SALT}
- COCKPIT_DATABASE_SERVER=mongodb://${MONGO_USERNAME}:${MONGO_PASSWORD}@mongo:27017
- COCKPIT_DATABASE_NAME=cockpit
volumes:
- config:/var/www/html/config
- storage:/var/www/html/storage
depends_on:
- mongo
mongo:
image: mongo:4
environment:
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_PASSWORD}
- MONGO_INITDB_ROOT_USERNAME=${MONGO_USERNAME}
volumes:
- mongo-data:/data/db
volumes:
config:
storage:
mongo-data: