This commit is contained in:
Andras Bacsai
2022-11-03 09:31:01 +01:00
parent 44feba4d89
commit c6c037ff17
8 changed files with 189 additions and 62 deletions

View File

@@ -1757,8 +1757,8 @@
showOnConfiguration: true
- templateVersion: 1.0.0
defaultVersion: latest
type: ghost
name: Ghost
type: ghost-mariadb
name: Ghost (MariaDB)
description: >-
Ghost is a free and open source blogging platform written in JavaScript and
distributed under the MIT License
@@ -1869,6 +1869,147 @@
label: MariaDB Root Password
defaultValue: $$generate_password
description: ''
- templateVersion: 1.0.0
defaultVersion: '5.22'
type: ghost-only
name: Ghost Only (No Database)
description: >-
Ghost is a free and open source blogging platform written in JavaScript and
distributed under the MIT License
services:
$$id:
name: Ghost
documentation: 'Taken from https://docs.ghost.org/'
image: 'ghost:$$core_version'
volumes:
- '$$id-ghost:/var/lib/ghost/content'
environment:
- url=$$config_url
- database__client=$$config_database__client
- database__connection__host=$$config_database__connection__host
- database__connection__user=$$config_database__connection__user
- database__connection__password=$$secret_database__connection__password
- database__connection__database=$$config_database__connection__database
ports:
- '2368'
variables:
- id: $$config_url
name: url
label: URL
defaultValue: $$generate_fqdn
description: ''
- id: $$config_database__client
name: database__client
label: Database Client
defaultValue: mysql
description: ''
required: true
- id: $$config_database__connection__host
name: database__connection__host
label: Database Host
defaultValue: ''
description: ''
required: true
placeholder: 'db.coolify.io'
- id: $$config_database__connection__user
name: database__connection__user
label: Database User
defaultValue: ''
description: ''
placeholder: 'ghost'
required: true
- id: $$secret_database__connection__password
name: database__connection__password
label: Database Password
defaultValue: ''
description: ''
placeholder: 'superSecretP4ssword'
showOnConfiguration: true
required: true
- id: $$config_database__connection__database
name: database__connection__database
label: Database Name
defaultValue: ''
description: ''
placeholder: 'ghost_db'
required: true
- templateVersion: 1.0.0
defaultVersion: '5.22'
type: ghost-mysql
name: Ghost (MySQL)
description: >-
Ghost is a free and open source blogging platform written in JavaScript and
distributed under the MIT License
services:
$$id:
name: Ghost
documentation: 'Taken from https://docs.ghost.org/'
depends_on:
- $$id-mysql
image: 'ghost:$$core_version'
volumes:
- '$$id-ghost:/var/lib/ghost/content'
environment:
- url=$$config_url
- database__client=$$config_database__client
- database__connection__host=$$config_database__connection__host
- database__connection__user=$$config_mysql_user
- database__connection__password=$$secret_mysql_password
- database__connection__database=$$config_mysql_database
ports:
- '2368'
$$id-mysql:
name: MySQL
depends_on: []
image: 'mysql:8.0'
volumes:
- '$$id-mysql:/var/lib/mysql'
environment:
- MYSQL_USER=$$config_mysql_user
- MYSQL_PASSWORD=$$secret_mysql_password
- MYSQL_DATABASE=$$config_mysql_database
- MYSQL_ROOT_PASSWORD=$$secret_mysql_root_password
ports: []
variables:
- id: $$config_url
name: url
label: URL
defaultValue: $$generate_fqdn
description: ''
- id: $$config_database__client
name: database__client
label: Database Client
defaultValue: mysql
description: ''
readOnly: true
- id: $$config_database__connection__host
name: database__connection__host
label: Database Host
defaultValue: $$id-mysql
description: ''
- id: $$config_mysql_user
main: $$id-mysql
name: MYSQL_USER
label: MySQL User
defaultValue: $$generate_username
description: ''
- id: $$secret_mysql_password
main: $$id-mysql
name: MYSQL_PASSWORD
label: MySQL Password
defaultValue: $$generate_password
description: ''
- id: $$config_mysql_database
main: $$id-mysql
name: MYSQL_DATABASE
label: MySQL Database
defaultValue: ghost
description: ''
- id: $$secret_mysql_root_password
name: MYSQL_ROOT_PASSWORD
label: MySQL Root Password
defaultValue: $$generate_password
description: ''
- templateVersion: 1.0.0
defaultVersion: php8.1
type: wordpress
@@ -1912,25 +2053,7 @@
label: Database Host
defaultValue: $$id-mysql
description: ''
readonly: true
- id: $$config_wordpress_db_user
name: WORDPRESS_DB_USER
label: Database User
defaultValue: $$config_mysql_user
description: ''
readonly: true
- id: $$secret_wordpress_db_password
name: WORDPRESS_DB_PASSWORD
label: Database Password
defaultValue: $$secret_mysql_password
description: ''
readonly: true
- id: $$config_wordpress_db_name
name: WORDPRESS_DB_NAME
label: Database Name
defaultValue: $$config_mysql_database
description: ''
readonly: true
readOnly: true
- id: $$config_wordpress_config_extra
name: WORDPRESS_CONFIG_EXTRA
label: WordPress Config Extra
@@ -1947,31 +2070,31 @@
label: MySQL Root Password
defaultValue: $$generate_password
description: ''
readonly: true
readOnly: true
- id: $$config_mysql_root_user
name: MYSQL_ROOT_USER
label: MySQL Root User
defaultValue: $$generate_username
description: ''
readonly: true
readOnly: true
- id: $$config_mysql_database
name: MYSQL_DATABASE
label: MySQL Database
defaultValue: wordpress
description: ''
readonly: true
readOnly: true
- id: $$config_mysql_user
name: MYSQL_USER
label: MySQL User
defaultValue: $$generate_username
description: ''
readonly: true
readOnly: true
- id: $$secret_mysql_password
name: MYSQL_PASSWORD
label: MySQL Password
defaultValue: $$generate_password
description: ''
readonly: true
readOnly: true
- templateVersion: 1.0.0
defaultVersion: php8.1
type: wordpress-only