From 858284e1fe7c73db0685022947f530392c295ff5 Mon Sep 17 00:00:00 2001 From: val Date: Thu, 12 Mar 2026 03:48:07 +0100 Subject: [PATCH] fixed image version as default, extra compose file for custom image version --- .env.sample | 17 +++++++++++------ compose.customversion.yml | 3 +++ compose.yml | 2 +- 3 files changed, 15 insertions(+), 7 deletions(-) create mode 100644 compose.customversion.yml diff --git a/.env.sample b/.env.sample index f6efb28..68f37cb 100644 --- a/.env.sample +++ b/.env.sample @@ -2,7 +2,6 @@ #SECRET_SMTP_PASSWORD_VERSION=v1 TYPE=ghost -#IMAGE_VERSION=6.3.1 DOMAIN=ghost.example.com @@ -15,18 +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 \ No newline at end of file diff --git a/compose.customversion.yml b/compose.customversion.yml new file mode 100644 index 0000000..f67cf7b --- /dev/null +++ b/compose.customversion.yml @@ -0,0 +1,3 @@ +services: + app: + image: ghost:${IMAGE_VERSION}-alpine \ No newline at end of file diff --git a/compose.yml b/compose.yml index 5c06c71..151f34e 100644 --- a/compose.yml +++ b/compose.yml @@ -1,6 +1,6 @@ services: app: - image: ghost:${IMAGE_VERSION:-6}-alpine + image: ghost:6.21.2-alpine environment: # see https://ghost.org/docs/config/#configuration-options database__client: mysql -- 2.49.0