diff --git a/templates/cpalius.json b/templates/cpalius.json new file mode 100644 index 0000000..e4f2935 --- /dev/null +++ b/templates/cpalius.json @@ -0,0 +1,62 @@ +{ + "slug": "cpalius", + "name": "CPalius CMF", + "description": "Modular PHP 8.4 / Symfony content management framework: pages, blog, forum, media, menus, themes and a module store, with a built-in web installer and one-click updates", + "logo_url": "https://raw.githubusercontent.com/CPalius/CPalius-Core/main/public/CPalius.png", + "image": "ghcr.io/cpalius/cpalius", + "default_tag": "2.2.73", + "image_digest": "sha256:fb80eac7482a6970ce333e4ace66274d1cfcc5ec155e4b1f5902f3ad7b3b4c51", + "categories": ["cms", "blog", "web"], + "ports": [ + { "host": 8090, "container": 80, "protocol": "tcp", "description": "HTTP web interface" } + ], + "env_vars": [ + { "key": "CPALIUS_DB_HOST", "default": "{{slug}}-db", "required": true, "secret": false, "description": "Database host to enter in the installer" }, + { "key": "CPALIUS_DB_NAME", "default": "cpalius", "required": true, "secret": false, "description": "Database name to enter in the installer" }, + { "key": "CPALIUS_DB_USER", "default": "cpalius", "required": true, "secret": false, "description": "Database user to enter in the installer" }, + { "key": "CPALIUS_DB_PASSWORD", "default": "", "required": true, "secret": true, "description": "Database password (auto-generated)" }, + { "key": "REDIS_URL", "default": "redis://{{slug}}-cache:6379", "required": true, "secret": false, "description": "Redis cache used by CPalius" } + ], + "volumes": [ + { "source": "{{slug}}_html", "target": "/var/www/html", "description": "CPalius files, settings, modules, themes and uploads" } + ], + "linked_services": [ + { + "name_suffix": "db", + "image": "mysql:8.4.13", + "digest": "sha256:8c233bad33d520a7aae1c1e619c3a9775f4a1ba2d463d692fada04ec7f40be00", + "env_vars": [ + { "key": "MYSQL_DATABASE", "value": "cpalius" }, + { "key": "MYSQL_USER", "value": "cpalius" }, + { "key": "MYSQL_PASSWORD", "from_env": "CPALIUS_DB_PASSWORD" }, + { "key": "MYSQL_RANDOM_ROOT_PASSWORD", "value": "1" } + ], + "volumes": [ + { "source": "{{slug}}_db_data", "target": "/var/lib/mysql", "description": "MySQL data" } + ], + "ports": [], + "command": "" + }, + { + "name_suffix": "cache", + "image": "redis:8.12.0-alpine", + "digest": "sha256:5af80107c1eeecb484a2269b80a26d12bfa6521787da4663bd9f19f60a163483", + "env_vars": [], + "volumes": [], + "ports": [], + "command": "" + } + ], + "min_memory_mb": 1024, + "post_install_notes": "Open the web UI to start the CPalius installer. On the database step enter host cpalius-db, port 3306, database cpalius, user cpalius and the generated DB password shown below. The bundled MySQL is private to this stack and not exposed to the network. Updates are installed from the admin panel; your files stay in the cpalius_html volume.", + "credential_patterns": [ + { "label": "Web URL", "value": "http://{{server_ip}}:8090" }, + { "label": "DB Host", "value": "{{env:CPALIUS_DB_HOST}}" }, + { "label": "DB Name / User", "value": "cpalius / cpalius" }, + { "label": "DB Password", "value": "{{env:CPALIUS_DB_PASSWORD}}" } + ], + "documentation_url": "https://github.com/CPalius/Docker", + "docker_hub_url": "https://github.com/CPalius/Docker/pkgs/container/cpalius", + "website_url": "https://www.cpalius.com", + "contributed_by": "slaweally" +}