lasthourcloud/templates/compose/classicpress-with-mysql.yaml

38 lines
1.2 KiB
YAML
Raw Normal View History

# documentation: https://www.classicpress.net/
2024-04-16 10:42:12 +00:00
# slogan: A lightweight, stable, instantly familiar free open-source content management system, based on WordPress without the block editor (Gutenberg).
# tags: cms, blog, content, management
# logo: svgs/classicpress.svg
services:
2024-04-16 10:42:12 +00:00
classicpress:
image: classicpress/classicpress:latest
volumes:
- classicpress-files:/var/www/html
environment:
- SERVICE_FQDN_CLASSICPRESS
- CLASSICPRESS_DB_HOST=mysql
- CLASSICPRESS_DB_USER=$SERVICE_USER_CLASSICPRESS
- CLASSICPRESS_DB_PASSWORD=$SERVICE_PASSWORD_CLASSICPRESS
- CLASSICPRESS_DB_NAME=classicpress
depends_on:
- mysql
healthcheck:
2024-05-17 08:11:55 +00:00
test: ["CMD", "curl", "-f", "http://127.0.0.1"]
2024-04-16 10:42:12 +00:00
interval: 2s
timeout: 10s
retries: 10
mariadb:
image: mysql:5.7
volumes:
- mysql-data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=$SERVICE_PASSWORD_ROOT
- MYSQL_DATABASE=classicpress
- MYSQL_USER=$SERVICE_USER_CLASSICPRESS
- MYSQL_PASSWORD=$SERVICE_PASSWORD_CLASSICPRESS
healthcheck:
2024-05-17 08:11:55 +00:00
test: ["CMD", "mysqladmin", "ping", "-h", "127.0.0.1"]
2024-04-16 10:42:12 +00:00
interval: 5s
timeout: 20s
retries: 10