commit 7823d5c0ea5cedf951d5047ffd2d7ff0ae4352e7 Author: superengine Date: Mon Sep 29 14:13:31 2025 +0000 Initial commit diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..c01090f --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,10 @@ +This software is licensed under the Software License Agreement for Ports available at the URI bellow: +https://www.superengine.tech/legal/software-license-agreement-for-ports +If, for any reason, the URI provided in this file to the Software License Agreement for Ports does not redirect to the website of the copyright owner of this software, and, to the correct page on this website, you may not use this software. + +This license does not apply to the files not under Superengine copyright as detailed in the NOTICE.txt file. + +This software uses the following third-party software: +- the wordpress image with the tag 6.8.2-php8.1-apache from Docker Hub +- the mysql image with the tag 9.4.0 from Docker Hub +Third-party software have a different copyright owner and license. \ No newline at end of file diff --git a/NOTICE.txt b/NOTICE.txt new file mode 100644 index 0000000..55c0657 --- /dev/null +++ b/NOTICE.txt @@ -0,0 +1,2 @@ +Copyright 2025 Superengine, except for the following files: +- picture.png \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..0b3e13b --- /dev/null +++ b/README.md @@ -0,0 +1,15 @@ +# Docmost Port for Superengine + +This port uses the [wordpress image](https://hub.docker.com/_/wordpress/) with the tag `6.8.2-php8.1-apache` and includes a MySQL database. The port may be updated to use newer tags in the future. + +## Installation + +Open Superengine, click `Install app` and enter the following app installation code: `0Yujb2xjwWXzstMjj9KEsZHSIzmaMwBNkhB5oUcT6WIand91hGDXJuV2rqflyuBQFZz9xzZTHvX6MaeMyhB1` + +## Data + +Data is saved in the application data folder. + +## Copyright and License + +See the NOTICE.txt file for copyright information and the LICENSE.txt file for information about the license. \ No newline at end of file diff --git a/compose.yaml.hbs b/compose.yaml.hbs new file mode 100644 index 0000000..d049df8 --- /dev/null +++ b/compose.yaml.hbs @@ -0,0 +1,38 @@ +services: + {{app_id}}-wordpress: + image: wordpress:6.8.2-php8.1-apache + restart: always + ports: + - {{entitlements.port-number}}:80 + volumes: + - {{entitlements.folder-path}}{{#if (eq entitlements.os "windows")}}\\{{else}}/{{/if}}wordpress:/var/www/html + environment: + WORDPRESS_DB_HOST: {{app_id}}-mysql:3306 + WORDPRESS_DB_USER: {{entitlements.db-user}} + WORDPRESS_DB_PASSWORD: {{entitlements.db-password}} + WORDPRESS_DB_NAME: {{entitlements.db-name}} + {{#unless (eq entitlements.os "windows")}} + user: {{entitlements.uid}}:{{entitlements.gid}} + {{/unless}} + logging: + driver: local + depends_on: + - {{app_id}}-mysql + + {{app_id}}-mysql: + image: mysql:9.4.0 + restart: always + ports: + - {{entitlements.db-port-number}}:3306 + volumes: + - {{entitlements.folder-path}}{{#if (eq entitlements.os "windows")}}\\{{else}}/{{/if}}mysql:/var/lib/mysql + environment: + MYSQL_ROOT_PASSWORD: {{entitlements.db-root-password}} + MYSQL_DATABASE: {{entitlements.db-name}} + MYSQL_USER: {{entitlements.db-user}} + MYSQL_PASSWORD: {{entitlements.db-password}} + {{#unless (eq entitlements.os "windows")}} + user: {{entitlements.uid}}:{{entitlements.gid}} + {{/unless}} + logging: + driver: local diff --git a/manifest.json b/manifest.json new file mode 100644 index 0000000..81e5294 --- /dev/null +++ b/manifest.json @@ -0,0 +1,90 @@ +{ + "app-spec-version": "1.1", + "subject": { + "name": { + "en": "WordPress" + }, + "version": "6.8.2-php8.1-apache" + }, + "entitlements": [ + { + "type": "PortUnspecifiedStaticNumber", + "name": "port-number", + "description": { + "en": "Number of the port used by WordPress." + } + }, + { + "type": "ApplicationDataDirectoryPath", + "name": "folder-path", + "description": { + "en": "Folder used by the database to store data." + } + }, + { + "type": "PortUnspecifiedStaticNumber", + "name": "db-port-number", + "description": { + "en": "Number of the port used by the database." + } + }, + { + "type": "RandomAlphanumericString30Characters", + "name": "db-root-password", + "description": { + "en": "Password of the root database user." + } + }, + { + "type": "RandomAlphanumericString30Characters", + "name": "db-name", + "description": { + "en": "Database name." + } + }, + { + "type": "RandomAlphanumericString30Characters", + "name": "db-user", + "description": { + "en": "Name of the database user." + } + }, + { + "type": "RandomAlphanumericString30Characters", + "name": "db-password", + "description": { + "en": "Password of the database user." + } + }, + { + "type": "IDUserNumber", + "name": "uid", + "description": { + "en": "User ID number." + } + }, + { + "type": "IDGroupNumber", + "name": "gid", + "description": { + "en": "Group ID number." + } + } + ], + "templates": [ + "compose.yaml.hbs", + "embedded_ui/overview.html.hbs" + ], + "actions": [ + { + "type": "CreateDirectory", + "in": "ApplicationDataDirectory", + "name": "wordpress" + }, + { + "type": "CreateDirectory", + "in": "ApplicationDataDirectory", + "name": "mysql" + } + ] +}