From 11f389289d695b4284b237faec92bee6d439729a Mon Sep 17 00:00:00 2001 From: Gabriel Peralta Date: Tue, 26 Mar 2024 13:58:52 -0400 Subject: [PATCH] Added Classicpress as a service Wordpress alternative without block editor (Gutenberg), Useful for small sites & lightweight blogs. PR includes 3 version's with or without database, also logo.svg --- public/svgs/classicpress.svg | 1 + .../compose/classicpress-with-mariadb.yaml | 28 +++++++++++++++++++ .../compose/classicpress-with-mysql.yaml | 28 +++++++++++++++++++ .../classicpress-without-database.yaml | 12 ++++++++ 4 files changed, 69 insertions(+) create mode 100644 public/svgs/classicpress.svg create mode 100644 templates/compose/classicpress-with-mariadb.yaml create mode 100644 templates/compose/classicpress-with-mysql.yaml create mode 100644 templates/compose/classicpress-without-database.yaml diff --git a/public/svgs/classicpress.svg b/public/svgs/classicpress.svg new file mode 100644 index 000000000..341be300e --- /dev/null +++ b/public/svgs/classicpress.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/templates/compose/classicpress-with-mariadb.yaml b/templates/compose/classicpress-with-mariadb.yaml new file mode 100644 index 000000000..7edd5ab0a --- /dev/null +++ b/templates/compose/classicpress-with-mariadb.yaml @@ -0,0 +1,28 @@ +# documentation: https://www.classicpress.net/ +# slogan: ClassicPress with external database. Classicpress 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: + wordpress: + image: classicpress/classicpress:latest + volumes: + - classicpress-files:/var/www/html + environment: + - SERVICE_FQDN + - CLASSICPRESS_DB_HOST=mariadb + - CLASSICPRESS_DB_USER=$SERVICE_USER_CLASSICPRESS + - CLASSICPRESS_DB_PASSWORD=$SERVICE_PASSWORD_CLASSICPRESS + - CLASSICPRESS_DB_NAME=classicpress + depends_on: + - mariadb + + mariadb: + image: mariadb:11 + volumes: + - mariadb-data:/var/lib/mysql + environment: + - MYSQL_ROOT_PASSWORD=$SERVICE_PASSWORD_ROOT + - MYSQL_DATABASE=classicpress + - MYSQL_USER=$SERVICE_USER_CLASSICPRESS + - MYSQL_PASSWORD=$SERVICE_PASSWORD_CLASSICPRESS \ No newline at end of file diff --git a/templates/compose/classicpress-with-mysql.yaml b/templates/compose/classicpress-with-mysql.yaml new file mode 100644 index 000000000..3e5add02b --- /dev/null +++ b/templates/compose/classicpress-with-mysql.yaml @@ -0,0 +1,28 @@ +# documentation: https://www.classicpress.net/ +# slogan: ClassicPress with external database. Classicpress 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: + wordpress: + image: classicpress/classicpress:latest + volumes: + - classicpress-files:/var/www/html + environment: + - SERVICE_FQDN + - CLASSICPRESS_DB_HOST=mysql + - CLASSICPRESS_DB_USER=$SERVICE_USER_CLASSICPRESS + - CLASSICPRESS_DB_PASSWORD=$SERVICE_PASSWORD_CLASSICPRESS + - CLASSICPRESS_DB_NAME=classicpress + depends_on: + - mysql + + 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 \ No newline at end of file diff --git a/templates/compose/classicpress-without-database.yaml b/templates/compose/classicpress-without-database.yaml new file mode 100644 index 000000000..70d686cfd --- /dev/null +++ b/templates/compose/classicpress-without-database.yaml @@ -0,0 +1,12 @@ +# documentation: https://www.classicpress.net/ +# slogan: ClassicPress with external database. Classicpress 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: + wordpress: + image: classicpress/classicpress:latest + volumes: + - classicpress-files:/var/www/html + environment: + - SERVICE_FQDN