coolify/templates/compose/joomla-with-mariadb.yaml

49 lines
1.3 KiB
YAML
Raw Normal View History

2025-01-15 16:44:06 +00:00
# documentation: https://joomla.org
# slogan: Joomla! is the mobile-ready and user-friendly way to build your website. Choose from thousands of features and designs. Joomla! is free and open source.
# tags: cms, blog, content, management, mariadb
# logo: svgs/joomla.svg
2025-01-16 13:17:28 +00:00
# port: 80
2025-01-15 16:44:06 +00:00
services:
joomla:
2025-01-16 13:17:28 +00:00
image: joomla:latest
2025-01-15 16:44:06 +00:00
volumes:
2025-01-16 13:17:28 +00:00
- joomla_data:/var/www/html
2025-01-15 16:44:06 +00:00
environment:
- SERVICE_FQDN_JOOMLA
- JOOMLA_DB_HOST=mariadb
2025-01-16 13:17:28 +00:00
- JOOMLA_DB_USER=${SERVICE_USER_JOOMLA}
- JOOMLA_DB_PASSWORD=${SERVICE_PASSWORD_JOOMLA}
- JOOMLA_DB_NAME=${MYSQL_DATABASE:-joomla-db}
2025-01-15 16:44:06 +00:00
depends_on:
2025-01-16 13:17:28 +00:00
mariadb:
condition: service_healthy
2025-01-15 16:44:06 +00:00
healthcheck:
test:
- CMD
- curl
- '-f'
- 'http://127.0.0.1'
interval: 2s
timeout: 10s
retries: 10
2025-01-16 13:17:28 +00:00
2025-01-15 16:44:06 +00:00
mariadb:
2025-01-16 13:17:28 +00:00
image: mariadb:11
2025-01-15 16:44:06 +00:00
volumes:
2025-01-16 13:17:28 +00:00
- joomla_mariadb_data:/var/lib/mysql
2025-01-15 16:44:06 +00:00
environment:
2025-01-16 13:17:28 +00:00
- MYSQL_ROOT_PASSWORD=${SERVICE_PASSWORD_ROOT}
- MYSQL_DATABASE=${MYSQL_DATABASE:-joomla-db}
- MYSQL_USER=${SERVICE_USER_JOOMLA}
- MYSQL_PASSWORD=${SERVICE_PASSWORD_JOOMLA}
2025-01-15 16:44:06 +00:00
healthcheck:
test:
- CMD
- healthcheck.sh
- '--connect'
- '--innodb_initialized'
interval: 5s
timeout: 20s
retries: 10