mirror of
https://github.com/Dokploy/templates
synced 2025-06-26 18:16:07 +00:00
Add Cockpit blueprint with Docker Compose and configuration files
- Introduced Docker Compose setup for Cockpit service, including environment variables and volume configuration. - Added logo for Cockpit. - Created template.toml for Cockpit with default variables for configuration. - Updated meta.json to include Cockpit with detailed description, logo, and relevant links.
This commit is contained in:
30
blueprints/cockpit/docker-compose.yml
Normal file
30
blueprints/cockpit/docker-compose.yml
Normal file
@@ -0,0 +1,30 @@
|
||||
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:
|
||||
- html:/var/www/html
|
||||
- data:/var/www/html/storage/data
|
||||
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:
|
||||
html:
|
||||
data:
|
||||
mongo-data:
|
||||
BIN
blueprints/cockpit/logo.png
Normal file
BIN
blueprints/cockpit/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.3 KiB |
15
blueprints/cockpit/template.toml
Normal file
15
blueprints/cockpit/template.toml
Normal file
@@ -0,0 +1,15 @@
|
||||
[variables]
|
||||
SALT = "${password:32}"
|
||||
MONGO_PASSWORD = "${password:16}"
|
||||
|
||||
|
||||
[config]
|
||||
[[config.domains]]
|
||||
serviceName = "cockpit"
|
||||
port = 80
|
||||
host = "${domain}"
|
||||
|
||||
[config.env]
|
||||
SALT = "${SALT}"
|
||||
MONGO_PASSWORD = "${MONGO_PASSWORD}"
|
||||
MONGO_USERNAME = "mongo"
|
||||
Reference in New Issue
Block a user