Added template for joomla with MariaDB

This commit is contained in:
Basilis Chatzigavriil
2025-01-15 18:44:06 +02:00
parent 676f616efa
commit 1421da1a43
2 changed files with 60 additions and 0 deletions

View File

@@ -0,0 +1,46 @@
# 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
services:
joomla:
image: 'joomla:latest'
volumes:
- 'joomla-files:/var/www/html'
environment:
- SERVICE_FQDN_JOOMLA
- JOOMLA_DB_HOST=mariadb
- JOOMLA_DB_USER=$SERVICE_USER_JOOMLA
- JOOMLA_DB_PASSWORD=$SERVICE_PASSWORD_JOOMLA
- JOOMLA_DB_NAME=joomla
depends_on:
- mariadb
healthcheck:
test:
- CMD
- curl
- '-f'
- 'http://127.0.0.1'
interval: 2s
timeout: 10s
retries: 10
mariadb:
image: 'mariadb:11'
volumes:
- 'mariadb-data:/var/lib/mysql'
environment:
- MYSQL_ROOT_PASSWORD=$SERVICE_PASSWORD_ROOT
- MYSQL_DATABASE=joomla
- MYSQL_USER=$SERVICE_USER_JOOMLA
- MYSQL_PASSWORD=$SERVICE_PASSWORD_JOOMLA
healthcheck:
test:
- CMD
- healthcheck.sh
- '--connect'
- '--innodb_initialized'
interval: 5s
timeout: 20s
retries: 10