Last active
June 3, 2022 20:53
-
-
Save Webbanditten/c7128d6ba25ae60b26aadfedf884277d to your computer and use it in GitHub Desktop.
GHOST-CAPROVER
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
captainVersion: 4 | |
services: | |
$$cap_appname: | |
environment: | |
database__client: 'mysql' | |
database__connection__host: $$cap_mariadb_host | |
database__connection__database: $$cap_ghost_database_name | |
database__connection__password: $$cap_ghost_database_password | |
database__connection__user: $$cap_ghost_database_user | |
database__connection__port: '3306' | |
url: $$cap_ghost_host | |
email__from: $$cap_ghost_smtp_from | |
email__transport: 'smtp' | |
email__options__host: $$cap_ghost_smtp_host | |
email__options__port: $$cap_ghost_smtp_port | |
email__options__service: $$cap_ghost_smtp_service | |
email__options__auth__user: $$cap_ghost_smtp_user | |
email__options__auth__pass: $$cap_ghost_smtp_password | |
image: ghost:4.2.0-alpine | |
restart: always | |
volumes: | |
- $$cap_appname-data:/var/lib/ghost/content | |
caproverExtra: | |
containerHttpPort: '2368' | |
caproverOneClickApp: | |
variables: | |
- description: Maria DB Host | |
defaultValue: localhost | |
id: $$cap_mariadb_host | |
label: Maria DB Host | |
- description: Database name | |
defaultValue: ghost | |
id: $$cap_ghost_database_name | |
label: MariaDB Database name | |
validRegex: /^([^\s^\/])+$/ | |
- description: User for database | |
id: $$cap_ghost_database_user | |
label: MariaDB User | |
validRegex: /^([^\s^\/])+$/ | |
- description: Password for database | |
id: $$cap_ghost_database_password | |
label: MariaDB Ghost password | |
validRegex: /^(?=.*\d).{10,}$/ | |
- defaultValue: blog.example.com | |
description: Enter the URL that is used to access your publication | |
id: $$cap_ghost_host | |
label: Ghost Host | |
- defaultValue: GMail | |
description: Ghost uses node mailer, check this docs https://docs.ghost.org/concepts/config/#mail | |
id: $$cap_ghost_smtp_service | |
label: SMTP service to use | |
- defaultValue: smtp.gmail.com | |
description: The STMP host you will be using | |
id: $$cap_ghost_smtp_host | |
label: STMP host | |
- defaultValue: '465' | |
description: The SMTP port you will be using | |
id: $$cap_ghost_smtp_port | |
label: SMTP port | |
- defaultValue: your_email@gmail.com | |
description: Your user on the SMTP service | |
id: $$cap_ghost_smtp_user | |
label: SMTP user | |
- description: Your password on the SMTP service | |
id: $$cap_ghost_smtp_password | |
label: SMTP password | |
- defaultValue: your_email@gmail.com | |
description: SMTP from address | |
id: $$cap_ghost_smtp_from | |
label: SMTP from address | |
instructions: | |
end: > | |
Ghost is deployed and available as $$cap_appname. | |
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. | |
displayName: Ghost - No Database | |
isOfficial: true | |
description: This will create a Ghost blog without a database. After installation you will need to change config.production.json, theres a bug where the port number is in the url. | |
documentation: Taken from https://docs.ghost.org/ |
@githubber If you want to use any SMTP server you can do that simply by putting in "SMTP" as the SMTP service to use
.
@Webbanditten Thank ! It was really helpfull but cannot send email I try to change directly inside of docker container the config file but nothing work do you have also this issue? I go Error sending email: Failed to send email. Reason: Sending failed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks! What other possibilities are there for email service other than Gmail, and how do I enter them? For example, smtp, or, SMTP, or localhost, etc.