mirror of
https://github.com/Dokploy/templates.git
synced 2026-07-16 11:25:25 +02:00
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>
30 lines
666 B
YAML
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: |