Update Ghost to v5 breaking changes (#670)

* Update Ghost to v5 breaking changes

* Fix formatting issue
This commit is contained in:
Matthieu Borgognon 2022-06-14 21:48:31 +02:00 committed by GitHub
parent 03f3819e7d
commit 1638debf1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 81 additions and 62 deletions

View File

@ -8,52 +8,52 @@ services:
GHOST_EMAIL: $$cap_ghost_email GHOST_EMAIL: $$cap_ghost_email
GHOST_HOST: $$cap_ghost_host GHOST_HOST: $$cap_ghost_host
GHOST_PASSWORD: $$cap_ghost_password GHOST_PASSWORD: $$cap_ghost_password
GHOST_PROTOCOL: $$cap_ghost_protocol GHOST_ENABLE_HTTPS: $$cap_ghost_protocol
GHOST_PORT_NUMBER: $$cap_ghost_port GHOST_PORT_NUMBER: $$cap_ghost_port
MARIADB_HOST: $$cap_mariadb_host GHOST_DATABASE_HOST: $$cap_db_host
MARIADB_PORT_NUMBER: $$cap_mariadb_port_number GHOST_DATABASE_PORT_NUMBER: $$cap_db_port_number
SMTP_FROM_ADDRESS: $$cap_ghost_smtp_from GHOST_SMTP_FROM_ADDRESS: $$cap_ghost_smtp_from
SMTP_HOST: $$cap_ghost_smtp_host GHOST_SMTP_HOST: $$cap_ghost_smtp_host
SMTP_PASSWORD: $$cap_ghost_smtp_password GHOST_SMTP_PASSWORD: $$cap_ghost_smtp_password
SMTP_PORT: $$cap_ghost_smtp_port GHOST_SMTP_PORT: $$cap_ghost_smtp_port
SMTP_SERVICE: $$cap_ghost_smtp_service GHOST_SMTP_USER: $$cap_ghost_smtp_user
SMTP_USER: $$cap_ghost_smtp_user GHOST_SMTP_PROTOCOL: $$cap_ghost_smtp_protocol
image: bitnami/ghost:$$cap_ghost_version image: bitnami/ghost:$$cap_ghost_version
restart: always restart: always
volumes: volumes:
- $$cap_appname-data:/bitnami - $$cap_appname-data:/bitnami/ghost
caproverExtra: caproverExtra:
containerHttpPort: '2368' containerHttpPort: '2368'
caproverOneClickApp: caproverOneClickApp:
variables: variables:
- defaultValue: 3.4.0 - defaultValue: 5.2.2
description: Check out their Docker page for the valid tags https://hub.docker.com/r/bitnami/ghost/tags description: Check out their Docker page for the valid tags https://hub.docker.com/r/bitnami/ghost/tags
id: $$cap_ghost_version id: $$cap_ghost_version
label: Ghost Version label: Ghost Version
validRegex: /^([^\s^\/])+$/ validRegex: /^([^\s^\/])+$/
- description: Maria DB Host - description: DB Host
defaultValue: localhost defaultValue: localhost
id: $$cap_mariadb_host id: $$cap_db_host
label: Maria DB Host label: DB Host
- description: Maria DB port - description: DB port
defaultValue: '3306' defaultValue: '3306'
id: $$cap_mariadb_port_number id: $$cap_db_port_number
label: MariaDB port label: DB port
- description: Database name - description: Database name
defaultValue: ghost defaultValue: ghost
id: $$cap_ghost_database_name id: $$cap_ghost_database_name
label: MariaDB Database name label: Ghost Database name
validRegex: /^([^\s^\/])+$/ validRegex: /^([^\s^\/])+$/
- description: User for database - description: User for database
id: $$cap_ghost_database_user id: $$cap_ghost_database_user
label: MariaDB User label: DB User
validRegex: /^([^\s^\/])+$/ validRegex: /^([^\s^\/])+$/
- description: Password for database - description: Password for database
id: $$cap_ghost_database_password id: $$cap_ghost_database_password
label: MariaDB Ghost password label: Ghost DB password
validRegex: /^(?=.*\d).{10,}$/ validRegex: /^(?=.*\d).{10,}$/
- defaultValue: youremail@example.com - defaultValue: youremail@example.com
description: Ghost application email, you will use it to login description: Ghost administrator email, you will use it to login
id: $$cap_ghost_email id: $$cap_ghost_email
label: Ghost email label: Ghost email
validRegex: /^([^\s^\/])+$/ validRegex: /^([^\s^\/])+$/
@ -66,19 +66,18 @@ caproverOneClickApp:
id: $$cap_ghost_host id: $$cap_ghost_host
label: Ghost Host label: Ghost Host
validRegex: /^([^\s^\/])+$/ validRegex: /^([^\s^\/])+$/
- defaultValue: http - defaultValue: 'yes'
description: Protocol that you will be using description: Enable serving Ghost through HTTPS instead of HTTP
id: $$cap_ghost_protocol id: $$cap_ghost_protocol
label: Ghost Protocol label: Ghost Protocol
validRegex: /^([^\s^\/])+$/ validRegex: /^([^\s^\/])+$/
- defaultValue: '80' - defaultValue: '2368'
description: Port that you will be using description: Port that you will be using
id: $$cap_ghost_port id: $$cap_ghost_port
label: Ghost Port label: Ghost Port
- defaultValue: GMail - description: The SMTP protocol to use. Allowed values tls, ssl. No default.
description: Ghost uses node mailer, check this docs https://docs.ghost.org/concepts/config/#mail id: $$cap_ghost_smtp_protocol
id: $$cap_ghost_smtp_service label: '[OPTIONAL] STMP protocol'
label: STMP service to use
- defaultValue: smtp.gmail.com - defaultValue: smtp.gmail.com
description: The STMP host you will be using description: The STMP host you will be using
id: $$cap_ghost_smtp_host id: $$cap_ghost_smtp_host
@ -102,6 +101,10 @@ caproverOneClickApp:
end: > end: >
Ghost is deployed and available as $$cap_appname. Ghost is deployed and available as $$cap_appname.
Before starting using Ghost, you'll need to
- Enable HTTPS
IMPORTANT: It will take up to 2 minutes for Ghost to be ready. Before that, you might see 502 error page. IMPORTANT: It will take up to 2 minutes for Ghost to be ready. Before that, you might see 502 error page.
start: Ghost is a fully open source, adaptable platform for building and running a modern online publication. We power blogs, magazines and journalists from Zappos to Sky News. start: Ghost is a fully open source, adaptable platform for building and running a modern online publication. We power blogs, magazines and journalists from Zappos to Sky News.
displayName: Ghost - No Database displayName: Ghost - No Database

View File

@ -5,62 +5,71 @@ services:
GHOST_DATABASE_NAME: ghost GHOST_DATABASE_NAME: ghost
GHOST_DATABASE_PASSWORD: $$cap_db_ghost_password GHOST_DATABASE_PASSWORD: $$cap_db_ghost_password
GHOST_DATABASE_USER: ghost GHOST_DATABASE_USER: ghost
GHOST_BLOG_TITLE: $$cap_ghost_blog_title
GHOST_USERNAME: $$cap_ghost_user
GHOST_EMAIL: $$cap_ghost_email GHOST_EMAIL: $$cap_ghost_email
GHOST_HOST: $$cap_ghost_host GHOST_HOST: $$cap_ghost_host
GHOST_PASSWORD: $$cap_ghost_password GHOST_PASSWORD: $$cap_ghost_password
GHOST_PROTOCOL: $$cap_ghost_protocol GHOST_ENABLE_HTTPS: $$cap_ghost_protocol
GHOST_PORT_NUMBER: $$cap_ghost_port GHOST_PORT_NUMBER: $$cap_ghost_port
MARIADB_HOST: srv-captain--$$cap_appname-db GHOST_DATABASE_HOST: srv-captain--$$cap_appname-db
MARIADB_PORT_NUMBER: '3306' GHOST_DATABASE_PORT_NUMBER: '3306'
SMTP_FROM_ADDRESS: $$cap_ghost_smtp_from GHOST_SMTP_FROM_ADDRESS: $$cap_ghost_smtp_from
SMTP_HOST: $$cap_ghost_smtp_host GHOST_SMTP_HOST: $$cap_ghost_smtp_host
SMTP_PASSWORD: $$cap_ghost_smtp_password GHOST_SMTP_PASSWORD: $$cap_ghost_smtp_password
SMTP_PORT: $$cap_ghost_smtp_port GHOST_SMTP_PORT: $$cap_ghost_smtp_port
SMTP_SERVICE: $$cap_ghost_smtp_service GHOST_SMTP_USER: $$cap_ghost_smtp_user
SMTP_USER: $$cap_ghost_smtp_user GHOST_SMTP_PROTOCOL: $$cap_ghost_smtp_protocol
image: bitnami/ghost:$$cap_ghost_version image: bitnami/ghost:$$cap_ghost_version
restart: always restart: always
volumes: volumes:
- $$cap_appname-data:/bitnami - $$cap_appname-data:/bitnami/ghost
depends_on:
- $$cap_appname-db
caproverExtra: caproverExtra:
containerHttpPort: '2368' containerHttpPort: '2368'
$$cap_appname-db: $$cap_appname-db:
environment: environment:
MARIADB_DATABASE: ghost MYSQL_DATABASE: ghost
MARIADB_PASSWORD: $$cap_db_ghost_password MYSQL_PASSWORD: $$cap_db_ghost_password
MARIADB_ROOT_PASSWORD: $$cap_db_password MYSQL_ROOT_PASSWORD: $$cap_db_password
MARIADB_ROOT_USER: $$cap_db_user MYSQL_ROOT_USER: $$cap_db_user
MARIADB_USER: ghost MYSQL_USER: ghost
image: bitnami/mariadb:10.1 image: bitnami/mysql:8.0
restart: always restart: always
volumes: volumes:
- $$cap_appname-mariadb-data:/bitnami - $$cap_appname-db-data:/bitnami/mysql
caproverExtra: caproverExtra:
notExposeAsWebApp: 'true' notExposeAsWebApp: 'true'
caproverOneClickApp: caproverOneClickApp:
variables: variables:
- defaultValue: 2.16.4 - defaultValue: 5.2.2
description: Check out their Docker page for the valid tags https://hub.docker.com/r/bitnami/ghost/tags description: Check out their Docker page for the valid tags https://hub.docker.com/r/bitnami/ghost/tags
id: $$cap_ghost_version id: $$cap_ghost_version
label: Ghost Version label: Ghost Version
validRegex: /^([^\s^\/])+$/ validRegex: /^([^\s^\/])+$/
- defaultValue: admin - defaultValue: admin
description: Root user that will be created on MariaDB description: Root user that will be created on DB
id: $$cap_db_user id: $$cap_db_user
label: MariaDB root user label: MYSQL root user
validRegex: /^([^\s^\/])+$/ validRegex: /^([^\s^\/])+$/
- description: Root password that will be created on MariaDB - description: Root password that will be created on MYSQL
id: $$cap_db_password id: $$cap_db_password
label: MariaDB root password label: MYSQL root password
validRegex: /^(?=.*\d).{10,}$/ validRegex: /^(?=.*\d).{10,}$/
- description: Password for database user named `ghost` - description: Password for database user named `ghost`
id: $$cap_db_ghost_password id: $$cap_db_ghost_password
label: MariaDB Ghost password label: MYSQL Ghost password
validRegex: /^(?=.*\d).{10,}$/ validRegex: /^(?=.*\d).{10,}$/
- defaultValue: user
description: Ghost administrator user
id: $$cap_ghost_user
label: Ghost administrator username
validRegex: /^([^\s^\/])+$/
- defaultValue: youremail@example.com - defaultValue: youremail@example.com
description: Ghost application email, you will use it to login description: Ghost administrator email, you will use it to login
id: $$cap_ghost_email id: $$cap_ghost_email
label: Ghost email label: Ghost administrator email
validRegex: /^([^\s^\/])+$/ validRegex: /^([^\s^\/])+$/
- description: The admin password must be at least 10 characters, and at least one number and letter - description: The admin password must be at least 10 characters, and at least one number and letter
id: $$cap_ghost_password id: $$cap_ghost_password
@ -71,24 +80,24 @@ caproverOneClickApp:
id: $$cap_ghost_host id: $$cap_ghost_host
label: Ghost Host label: Ghost Host
validRegex: /^([^\s^\/])+$/ validRegex: /^([^\s^\/])+$/
- defaultValue: http - defaultValue: 'yes'
description: Protocol that you will be using description: Enable serving Ghost through HTTPS instead of HTTP
id: $$cap_ghost_protocol id: $$cap_ghost_protocol
label: Ghost Protocol label: Ghost Protocol
validRegex: /^([^\s^\/])+$/ validRegex: /^([^\s^\/])+$/
- defaultValue: '80' - defaultValue: '2368'
description: Port that you will be using description: Port that you will be using
id: $$cap_ghost_port id: $$cap_ghost_port
label: Ghost Port label: Ghost Port
- defaultValue: GMail - defaultValue: 'User blog'
description: Ghost uses node mailer, check this docs https://docs.ghost.org/concepts/config/#mail description: Blog name that will be displayed
id: $$cap_ghost_smtp_service id: $$cap_ghost_blog_title
label: STMP service to use label: Ghost Blog Title
- defaultValue: smtp.gmail.com - defaultValue: smtp.gmail.com
description: The STMP host you will be using description: The STMP host you will be using
id: $$cap_ghost_smtp_host id: $$cap_ghost_smtp_host
label: STMP host label: STMP host
- defaultValue: '465' - defaultValue: '587'
description: The STMP port you will be using description: The STMP port you will be using
id: $$cap_ghost_smtp_port id: $$cap_ghost_smtp_port
label: STMP port label: STMP port
@ -99,7 +108,10 @@ caproverOneClickApp:
- description: Your password on the SMTP service - description: Your password on the SMTP service
id: $$cap_ghost_smtp_password id: $$cap_ghost_smtp_password
label: STMP password label: STMP password
- defaultValue: your_email@gmail.com - description: The SMTP protocol to use. Allowed values tls, ssl. No default.
id: $$cap_ghost_smtp_protocol
label: '[OPTIONAL] STMP protocol'
- defaultValue: blog@example.com
description: STMP from address description: STMP from address
id: $$cap_ghost_smtp_from id: $$cap_ghost_smtp_from
label: STMP from address label: STMP from address
@ -107,6 +119,10 @@ caproverOneClickApp:
end: > end: >
Ghost is deployed and available as $$cap_appname. Ghost is deployed and available as $$cap_appname.
Before starting using Ghost, you'll need to
- Enable HTTPS
IMPORTANT: It will take up to 2 minutes for Ghost to be ready. Before that, you might see 502 error page. IMPORTANT: It will take up to 2 minutes for Ghost to be ready. Before that, you might see 502 error page.
start: Ghost is a fully open source, adaptable platform for building and running a modern online publication. We power blogs, magazines and journalists from Zappos to Sky News. start: Ghost is a fully open source, adaptable platform for building and running a modern online publication. We power blogs, magazines and journalists from Zappos to Sky News.
displayName: '' displayName: ''