Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(template): add new joomla stack template #194

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions stacks/joomla/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
version: '2'

services:
db:
image: mariadb:latest
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: joomlaSecure12345
MYSQL_DATABASE: joomla
MYSQL_USER: joomla
MYSQL_PASSWORD: joomlaSecure

joomla:
image: joomla:latest
ports:
- 80
restart: always
environment:
JOOMLA_DB_HOST: db:3306
JOOMLA_DB_USER: joomla
JOOMLA_DB_NAME: joomla
JOOMLA_DB_PASSWORD: joomlaSecure
JOOMLA_SITE_NAME: Joomla
JOOMLA_ADMIN_USER: Joomla Admin
JOOMLA_ADMIN_USERNAME: joomla
JOOMLA_ADMIN_PASSWORD: joomla@secured
JOOMLA_ADMIN_EMAIL: [email protected]
volumes:
- file_data:/var/www/html

volumes:
db_data:
file_data:
35 changes: 35 additions & 0 deletions stacks/joomla/docker-stack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
version: '3'

services:
db:
image: mariadb:latest
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: joomla
MYSQL_USER: joomla
MYSQL_PASSWORD: ${JOOMLA_DB_PASSWORD}

joomla:
image: joomla:latest
ports:
- 80
restart: always
environment:
JOOMLA_DB_HOST: db:3306
JOOMLA_DB_USER: joomla
JOOMLA_DB_NAME: joomla
JOOMLA_DB_PASSWORD: ${JOOMLA_DB_PASSWORD}
JOOMLA_SITE_NAME: ${JOOMLA_SITE_NAME}
JOOMLA_ADMIN_USER: ${JOOMLA_ADMIN_USER}
JOOMLA_ADMIN_USERNAME: ${JOOMLA_ADMIN_USERNAME}
JOOMLA_ADMIN_PASSWORD: ${JOOMLA_ADMIN_PASSWORD}
JOOMLA_ADMIN_EMAIL: ${JOOMLA_ADMIN_EMAIL}
volumes:
- file_data:/var/www/html

volumes:
db_data:
file_data:
73 changes: 72 additions & 1 deletion templates-2.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,8 @@
{
"type": 1,
"title": "Joomla",
"description": "Another free and open-source CMS",
"description": "Joomla setup, bring your own database",
"note": "Deploys a Joomla instance and connect it to your existing database.",
"categories": ["CMS"],
"platform": "linux",
"logo": "https://portainer-io-assets.sfo2.digitaloceanspaces.com/logos/joomla.png",
Expand All @@ -511,6 +512,76 @@
}
]
},
{
"type": 2,
"title": "Joomla",
"description": "Joomla setup with a MariaDB database",
"note": "Deploys a Joomla instance connected to a MariaDB database.",
"categories": ["CMS"],
"platform": "linux",
"logo": "https://portainer-io-assets.sfo2.digitaloceanspaces.com/logos/joomla.png",
"repository": {
"url": "https://github.com/portainer/templates",
"stackfile": "stacks/joomla/docker-stack.yml"
},
"env": [
{
"name": "JOOMLA_SITE_NAME",
"label": "Joomla Site Name",
"description": "Joomla site name, must be longer than 2 characters.",
"default": "Joomla"
},
{
"name": "JOOMLA_ADMIN_USER",
"label": "Joomla Admin Name",
"description": "Admin full name, must be longer than 2 characters.",
"default": "Joomla Admin"
},
{
"name": "JOOMLA_ADMIN_USERNAME",
"label": "Joomla Admin Username",
"description": "Admin username, must contain no spaces and be only alphabetical and longer than 2 characters.",
"default": "joomla"
},
{
"name": "JOOMLA_ADMIN_EMAIL",
"label": "Joomla Admin Email",
"description": "Admin email, must be a valid email address",
"default": "[email protected]"
},
{
"name": "JOOMLA_ADMIN_PASSWORD",
"label": "Joomla Admin Password",
"description": "Admin password, must be longer than 12 characters",
"default": "joomla@secured"
},
{
"name": "JOOMLA_DB_PASSWORD",
"label": "Database user password",
"description": "Password used by the MariaDB user.",
"default": "joomlaSecure"
},
{
"name": "MYSQL_ROOT_PASSWORD",
"label": "Database root password",
"description": "Password used by the MariaDB root user.",
"default": "joomlaSecure12345"
}
]
},
{
"type": 3,
"title": "Joomla",
"description": "Joomla setup with a MariaDB database",
"note": "Customize the deployment of a Joomla instance connected to a MariaDB database.",
"categories": ["CMS"],
"platform": "linux",
"logo": "https://portainer-io-assets.sfo2.digitaloceanspaces.com/logos/joomla.png",
"repository": {
"url": "https://github.com/portainer/templates",
"stackfile": "stacks/joomla/docker-compose.yml"
}
},
{
"type": 1,
"title": "Drupal",
Expand Down