From 1421da1a433038b14385c0d1e0a0bdf8a15eab20 Mon Sep 17 00:00:00 2001 From: Basilis Chatzigavriil Date: Wed, 15 Jan 2025 18:44:06 +0200 Subject: [PATCH] Added template for joomla with MariaDB --- public/svgs/joomla.svg | 14 +++++++ templates/compose/joomla-with-mariadb.yaml | 46 ++++++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 public/svgs/joomla.svg create mode 100644 templates/compose/joomla-with-mariadb.yaml diff --git a/public/svgs/joomla.svg b/public/svgs/joomla.svg new file mode 100644 index 000000000..13b76848e --- /dev/null +++ b/public/svgs/joomla.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/templates/compose/joomla-with-mariadb.yaml b/templates/compose/joomla-with-mariadb.yaml new file mode 100644 index 000000000..a6eeb59f2 --- /dev/null +++ b/templates/compose/joomla-with-mariadb.yaml @@ -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 +