9 Commits

Author SHA1 Message Date
3c503aa42f Merge pull request 'Fix backup/restore' (#12) from fix-backup into main
Reviewed-on: https://git.coopcloud.tech/coop-cloud/ghost/pulls/12
2026-06-02 17:39:07 +00:00
11bac13e30 fix(backup) + chore: upgrade to 1.3.0+6.42.0-alpine
All checks were successful
cc-ci/testme cc-ci: success
- Inline mysqldump/gunzip into backupbot.backup.pre-hook and
  backupbot.restore.post-hook label values on the db service.
  Single-file gzipped dump (--single-transaction --routines
  --triggers --databases ghost) is written into the mysql volume
  at /var/lib/mysql/backup.sql.gz; the volume is what backupbot
  snapshots, so the dump survives the round-trip and the restore
  hook re-imports it. Replaces the previous mysqldump --tab
  backup that shipped with no restore hook (silent data loss on
  restore, since the mysql data volume itself wasn't backed up).
- Drop mysql_backup.sh, its config mount, and MYSQL_BACKUP_VERSION
  in favour of the inline label pattern used by
  akaunting / engelsystem / forgejo.
- Raise app healthcheck start_period 1m -> 15m to accommodate
  slow fresh-DB migration on first boot.
- Upgrade ghost image to 6.42.0-alpine; bump recipe version to
  1.3.0+6.42.0-alpine.
2026-06-02 17:29:23 +00:00
val
ff03db348f chore: publish 1.2.0+6.21.2-alpine release 2026-03-12 03:56:46 +01:00
a6f646a2c8 Merge pull request 'fixed image version as default, extra compose file for custom image version' (#7) from fixed_image_version into main
Reviewed-on: https://git.coopcloud.tech/coop-cloud/ghost/pulls/7
2026-03-12 02:51:17 +00:00
val
858284e1fe fixed image version as default, extra compose file for custom image version 2026-03-12 03:48:07 +01:00
e6f9ecba68 Merge pull request 'chore: Configure Renovate' (#6) from renovate/configure into main
Reviewed-on: https://git.coopcloud.tech/coop-cloud/ghost/pulls/6
2026-03-12 02:07:51 +00:00
c3d3eeef56 Add renovate.json 2026-03-10 17:41:37 +00:00
val
1f1add13ee release notes 2025-10-17 17:40:48 +02:00
val
89a9b369bb chore: publish 1.1.1+6-alpine release 2025-10-17 17:40:02 +02:00
7 changed files with 37 additions and 14 deletions

View File

@ -2,7 +2,6 @@
#SECRET_SMTP_PASSWORD_VERSION=v1
TYPE=ghost
#IMAGE_VERSION=6.3.1
DOMAIN=ghost.example.com
@ -15,13 +14,24 @@ SECRET_DB_PASSWORD_VERSION=v1
SECRET_SMTP_PASSWORD_VERSION=v1
## Mail settings (mandatory)
#MAIL_TRANSPORT=smtp
#MAIL_FROM=admin@example.com
#MAIL_OPTIONS_HOST=mail.example.com
#MAIL_OPTIONS_PORT=587
MAIL_TRANSPORT=smtp
MAIL_FROM=admin@example.com
MAIL_OPTIONS_HOST=mail.example.com
MAIL_OPTIONS_PORT=587
MAIL_OPTIONS_AUTH_USER=smtpuser@example.com
#MAIL_OPTIONS_SECURE=false
#MAIL_OPTIONS_AUTH_USER=smtpuser@example.com
## Advanced options
# see here: https://docs.ghost.org/config#number-of-connections
#DATABASE_POOL_MIN=2
#DATABASE_POOL_MAX=15
COMPOSE_FILE="compose.yml"
## Matrix-Synapse-Redirection
# COMPOSE_FILE="$COMPOSE_FILE:compose.matrix.yml"
# MATRIX_DOMAIN=matrix-synapse.example.com
## Custom Image Version
# COMPOSE_FILE="$COMPOSE_FILE:compose.customversion.yml"
# IMAGE_VERSION=6.3.1

View File

@ -1 +1 @@
export GHOST_ENTRYPOINT_VERSION=v1
export GHOST_ENTRYPOINT_VERSION=v1

View File

@ -0,0 +1,3 @@
services:
app:
image: ghost:${IMAGE_VERSION}-alpine

View File

@ -1,6 +1,6 @@
services:
app:
image: ghost:${IMAGE_VERSION:-6}-alpine
image: ghost:6.42.0-alpine
environment:
# see https://ghost.org/docs/config/#configuration-options
database__client: mysql
@ -8,6 +8,8 @@ services:
database__connection__user: root
database__connection__database: ghost
database__connection__password_FILE: /run/secrets/db_password
database__pool__min: ${DATABASE_POOL_MIN:-0}
database__pool__max: ${DATABASE_POOL_MAX:-10}
url: https://$DOMAIN
mail__transport: ${MAIL_TRANSPORT}
mail__from: ${MAIL_FROM}
@ -49,13 +51,13 @@ services:
- "traefik.http.middlewares.${STACK_NAME}-redirect.redirectscheme.permanent=true"
- "backupbot.backup=true"
- "backupbot.backup.path=/var/lib/ghost/content"
- "coop-cloud.${STACK_NAME}.version=1.1.0+6-alpine"
- "coop-cloud.${STACK_NAME}.version=1.3.0+6.42.0-alpine"
healthcheck:
test: ["CMD", "wget", "--header=X-Forwarded-Proto: https", "--spider", "-q", "http://localhost:2368/ghost/api/admin/site"]
interval: 30s
timeout: 10s
retries: 10
start_period: 1m
start_period: 15m
db:
image: mysql:8.0
@ -70,9 +72,9 @@ services:
deploy:
labels:
- "backupbot.backup=true"
- "backupbot.backup.pre-hook=mysqldump -u root -p\"$$(cat /run/secrets/db_password)\" ghost --tab /var/lib/mysql-files/"
- "backupbot.backup.post-hook=rm -rf /var/lib/mysql-files/*"
- "backupbot.backup.path=/var/lib/mysql-files/"
- 'backupbot.backup.pre-hook=mysqldump -u root -p"$$(cat /run/secrets/db_password)" --single-transaction --routines --triggers --databases ghost | gzip > /var/lib/mysql/backup.sql.gz'
- "backupbot.backup.volumes.mysql.path=backup.sql.gz"
- 'backupbot.restore.post-hook=gunzip -c /var/lib/mysql/backup.sql.gz | mysql -u root -p"$$(cat /run/secrets/db_password)"'
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "-p\"$$(cat /run/secrets/db_password)\""]
@ -101,4 +103,4 @@ secrets:
configs:
ghost_entrypoint:
name: ${STACK_NAME}_ghost_entrypoint_${GHOST_ENTRYPOINT_VERSION}
file: entrypoint.sh
file: entrypoint.sh

1
release/1.1.1+6-alpine Normal file
View File

@ -0,0 +1 @@
set mysql-pooling default to 0, added option to set it via env

View File

@ -0,0 +1 @@
move IMAGE_VERSION in extra compose file to make sure, main is always a knowingly working version

6
renovate.json Normal file
View File

@ -0,0 +1,6 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended"
]
}