2023-10-19 08:51:03 +00:00
# documentation: https://ghost.org/docs
# slogan: Ghost is a popular open-source content management system (CMS) and blogging platform, known for its simplicity and focus on content creation.
2023-10-24 10:33:49 +00:00
# tags: cms, blog, content, management, system
2023-10-19 08:51:03 +00:00
2023-09-20 13:42:41 +00:00
services :
ghost :
image : ghost:5
volumes :
- ghost-content-data:/var/lib/ghost/content
environment :
- url=$SERVICE_FQDN_GHOST
- database__client=mysql
- database__connection__host=mysql
- database__connection__user=$SERVICE_USER_MYSQL
- database__connection__password=$SERVICE_PASSWORD_MYSQL
- database__connection__database=${MYSQL_DATABASE-ghost}
2023-11-24 20:23:48 +00:00
- mail__transport=SMTP
2023-11-24 20:03:59 +00:00
- mail__options__auth__pass=${MAIL_OPTIONS_AUTH_PASS}
- mail__options__auth__user=${MAIL_OPTIONS_AUTH_USER}
- mail__options__secure=${MAIL_OPTIONS_SECURE:-true}
- mail__options__port=${MAIL_OPTIONS_PORT:-465}
- mail__options__service=${MAIL_OPTIONS_SERVICE:-Mailgun}
- mail__options__host=${MAIL_OPTIONS_HOST}
2023-09-20 13:42:41 +00:00
depends_on :
2023-10-04 12:40:33 +00:00
mysql :
condition : service_healthy
2023-09-20 13:42:41 +00:00
mysql :
image : mysql:8.0
volumes :
- ghost-mysql-data:/var/lib/mysql
environment :
- MYSQL_USER=${SERVICE_USER_MYSQL}
- MYSQL_PASSWORD=${SERVICE_PASSWORD_MYSQL}
- MYSQL_DATABASE=${MYSQL_DATABASE}
2023-10-04 12:40:33 +00:00
- MYSQL_ROOT_PASSWORD=${SERVICE_PASSWORD_MYSQLROOT}
healthcheck :
test : [ "CMD" , "mysqladmin" , "ping" , "-h" , "localhost" ]
interval : 5s
2023-10-26 08:02:51 +00:00
timeout : 20s
2023-10-04 12:40:33 +00:00
retries : 10