lasthourcloud/templates/compose/ghost.yaml

48 lines
1.5 KiB
YAML
Raw Normal View History

2024-02-20 14:07:12 +00:00
# documentation: https://ghost.org
# slogan: Ghost is a content management system (CMS) and blogging platform.
2023-10-24 10:33:49 +00:00
# tags: cms, blog, content, management, system
2024-02-20 14:07:12 +00:00
# logo: svgs/ghost.svg
# port: 2368
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_2368
2023-09-20 13:42:41 +00:00
- 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}
- mail__transport=SMTP
- 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
healthcheck:
test: ["CMD", "echo", "ok"]
interval: 5s
timeout: 20s
retries: 10
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:
2024-05-17 08:11:55 +00:00
test: ["CMD", "mysqladmin", "ping", "-h", "127.0.0.1"]
2023-10-04 12:40:33 +00:00
interval: 5s
2023-10-26 08:02:51 +00:00
timeout: 20s
2023-10-04 12:40:33 +00:00
retries: 10