Skip to content
Closed
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
38 changes: 38 additions & 0 deletions templates/compose/wordpress-with-openlitespeed-mariadb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# documentation: https://wordpress.org
# slogan: WordPress running on OpenLiteSpeed web server with MariaDB database.
# category: cms
# tags: cms, blog, content, management, openlitespeed, mariadb
# logo: svgs/wordpress.svg

services:
wordpress:
image: litespeedtech/openlitespeed-wordpress:latest
volumes:
- wordpress-files:/var/www/vhosts/localhost
environment:
- SERVICE_URL_WORDPRESS
- WORDPRESS_DB_HOST=mariadb
- WORDPRESS_DB_USER=$SERVICE_USER_WORDPRESS
- WORDPRESS_DB_PASSWORD=$SERVICE_PASSWORD_WORDPRESS
- WORDPRESS_DB_NAME=wordpress
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=wordpress
- MYSQL_USER=$SERVICE_USER_WORDPRESS
- MYSQL_PASSWORD=$SERVICE_PASSWORD_WORDPRESS
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
interval: 5s
timeout: 20s
retries: 10
Loading