7 Commits

4 changed files with 13 additions and 6 deletions

View File

@ -2,6 +2,7 @@
#SECRET_SMTP_PASSWORD_VERSION=v1
TYPE=ghost
#IMAGE_VERSION=6.3.1
DOMAIN=ghost.example.com
@ -9,7 +10,11 @@ DOMAIN=ghost.example.com
#EXTRA_DOMAINS=', `www.ghost.example.com`'
LETS_ENCRYPT_ENV=production
## Mail settings
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
@ -19,4 +24,4 @@ LETS_ENCRYPT_ENV=production
## Matrix-Synapse-Redirection
# COMPOSE_FILE="$COMPOSE_FILE:compose.matrix.yml"
# MATRIX_DOMAIN=matrix-synapse.example.com
# MATRIX_DOMAIN=matrix-synapse.example.com

View File

@ -1,6 +1,6 @@
services:
app:
image: ghost:5-alpine
image: ghost:${IMAGE_VERSION:-6}-alpine
environment:
# see https://ghost.org/docs/config/#configuration-options
database__client: mysql
@ -45,11 +45,11 @@ services:
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
# Redirect from EXTRA_DOMAINS to DOMAIN
- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect"
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true"
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
- "traefik.http.middlewares.${STACK_NAME}-redirect.redirectscheme.scheme=https"
- "traefik.http.middlewares.${STACK_NAME}-redirect.redirectscheme.permanent=true"
- "backupbot.backup=true"
- "backupbot.backup.path=/var/lib/ghost/content"
- "coop-cloud.${STACK_NAME}.version=0.1.0+5-alpine"
- "coop-cloud.${STACK_NAME}.version=1.1.0+6-alpine"
healthcheck:
test: ["CMD", "wget", "--header=X-Forwarded-Proto: https", "--spider", "-q", "http://localhost:2368/ghost/api/admin/site"]
interval: 30s

1
release/1.0.0+5-alpine Normal file
View File

@ -0,0 +1 @@
breaking change due to mysql-upgrade and secrets, checkout release-notes in release/1.0.0+5-alpine

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

@ -0,0 +1 @@
when deploying, healthchecks may fail once, it seems to be caused by a database update/migration needing more time. Just wait some time and deploy again