Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions blueprints/ghost/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
version: "3.8"
services:
ghost:
image: ghost:6-alpine
image: ghost:6.19.3-alpine
restart: always
environment:
database__client: mysql
database__connection__host: db
database__connection__user: root
database__connection__password: example
database__connection__password: ${DATABASE_ROOT_PASSWORD}
database__connection__database: ghost
url: http://${GHOST_HOST}

Expand All @@ -17,9 +17,8 @@ services:
db:
image: mysql:8.0
restart: always

environment:
MYSQL_ROOT_PASSWORD: example
MYSQL_ROOT_PASSWORD: ${DATABASE_ROOT_PASSWORD}
volumes:
- db:/var/lib/mysql

Expand Down
6 changes: 5 additions & 1 deletion blueprints/ghost/template.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
[variables]
main_domain = "${domain}"
mysql_root_password = "${password:32}"

[config]
env = ["GHOST_HOST=${main_domain}"]
mounts = []

[config.env]
GHOST_HOST="${main_domain}"
DATABASE_ROOT_PASSWORD="${mysql_root_password}"
Copy link

Copilot AI Feb 28, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The environment variable name DATABASE_ROOT_PASSWORD deviates from the established naming convention across all other MySQL-backed blueprints in this repository, which consistently use MYSQL_ROOT_PASSWORD as the env var name (e.g., blueprints/linkstack/template.toml, blueprints/gitea-mysql/template.toml, blueprints/mautic/template.toml).

Using MYSQL_ROOT_PASSWORD instead would align with the codebase convention and would also directly match the expected MySQL environment variable name, eliminating the need for the extra mapping in docker-compose.yml (where MYSQL_ROOT_PASSWORD: "${DATABASE_ROOT_PASSWORD}" maps one name to another). Consider renaming both the TOML variable (mysql_root_password → already used) and the env var key to MYSQL_ROOT_PASSWORD to match the pattern used in all other MySQL blueprints.

Suggested change
DATABASE_ROOT_PASSWORD="${mysql_root_password}"
MYSQL_ROOT_PASSWORD="${mysql_root_password}"

Copilot uses AI. Check for mistakes.

[[config.domains]]
serviceName = "ghost"
port = 2_368
Expand Down
2 changes: 1 addition & 1 deletion meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -2617,7 +2617,7 @@
{
"id": "ghost",
"name": "Ghost",
"version": "6.0.0",
"version": "6.19.3",
"description": "Ghost is a free and open source, professional publishing platform built on a modern Node.js technology stack.",
"logo": "ghost.jpeg",
"links": {
Expand Down
Loading