Sign inSign up

panelica/openlitespeed-wordpress

By panelica

•Updated 3 months ago

Production-ready WordPress on OpenLiteSpeed with LiteSpeed Cache and Redis. Maintained by Panelica.

Image
0

244

panelica/openlitespeed-wordpress repository overview

⁠OpenLiteSpeed WordPress

A production-ready WordPress image built on OpenLiteSpeed, with LiteSpeed Cache (LSCache) full-page caching, Redis object caching, and a selectable PHP runtime (8.2, 8.3, or 8.4). OPcache and the JIT compiler are enabled and tuned by default. WordPress core is provisioned at its latest stable release on first start, so the instance is ready for use immediately. Open-source and free to use; OpenLiteSpeed is distributed under the GPLv3 license.

Maintained by Panelica⁠, a server control panel for managing websites, runtimes, databases, email, DNS, and containers.


⁠Overview

ComponentDetails
Web serverOpenLiteSpeed (latest), HTTP/3 (QUIC), Brotli compression
Page cacheLiteSpeed Cache (LSCache), pre-configured
Object cacheRedis, pre-configured
PHP runtimelsphp 8.2 / 8.3 / 8.4 (selectable), OPcache + JIT
ApplicationWordPress (latest stable, installed on first start)
ToolingWP-CLI, LiteSpeed Cache plugin

⁠Requirements

This image runs the web tier. It expects a MariaDB (or MySQL) database and a Redis instance to be reachable on the same network. The example below provisions both.

⁠Deployment (Docker Compose)

services:
  wordpress:
    image: panelica/openlitespeed-wordpress:latest
    ports:
      - "8080:80"
    environment:
      PHP_VERSION: "8.4"            # 8.2 | 8.3 | 8.4
      SITE_URL: "http://localhost:8080"
      WP_TITLE: "My WordPress Site"
      WP_ADMIN_USER: "admin"
      WP_ADMIN_PASSWORD: "change-this-password"
      WP_ADMIN_EMAIL: "[email protected]"
      DB_HOST: "mysql"
      DB_NAME: "wordpress"
      DB_USER: "wordpress"
      DB_PASSWORD: "set-a-strong-password"
      REDIS_HOST: "redis"
    depends_on: [mysql, redis]
    restart: unless-stopped
  mysql:
    image: mariadb:11.8
    environment:
      MARIADB_DATABASE: "wordpress"
      MARIADB_USER: "wordpress"
      MARIADB_PASSWORD: "set-a-strong-password"
      MARIADB_ROOT_PASSWORD: "set-a-strong-root-password"
    volumes: ["db_data:/var/lib/mysql"]
    restart: unless-stopped
  redis:
    image: redis:alpine
    restart: unless-stopped
volumes:
  db_data:
docker compose up -d
# The site is available at http://localhost:8080 — sign in at /wp-admin

⁠Configuration

VariableDefaultDescription
PHP_VERSION8.4PHP runtime: 8.2, 8.3, or 8.4
SITE_URLhttp://localhostPublic site address; set to your domain in production
WP_TITLEWordPressSite title
WP_ADMIN_USERadminAdministrator username
WP_ADMIN_PASSWORDgeneratedAdministrator password; a strong value is generated if unset
WP_ADMIN_EMAIL[email protected]Administrator email address
DB_HOSTmysqlDatabase hostname
DB_NAMEwordpressDatabase name
DB_USERwordpressDatabase username
DB_PASSWORD—Database password
REDIS_HOSTredisRedis hostname (object cache)
REDIS_PORT6379Redis port

⁠Persistence

WordPress files are stored at /var/www/vhosts/localhost/html. Mount a volume at this path to persist uploads, themes, and plugins across container recreation.

⁠Exposed ports

PortProtocolPurpose
80TCPHTTP
443TCP / UDPHTTPS and HTTP/3 (QUIC)

⁠Notes

  • WordPress is installed and configured automatically on first start; no setup wizard is required.
  • The provisioning step is idempotent: subsequent restarts reuse the existing installation.
  • Production deployments should set SITE_URL to the public domain and terminate TLS at a reverse proxy or load balancer where applicable.

⁠About Panelica

This image is maintained by Panelica, a control panel for provisioning and managing servers through a web interface. Panelica can deploy this stack (WordPress, OpenLiteSpeed, MariaDB, and Redis) as a managed application, with runtime selection, credential generation, domain attachment, and automatic TLS. It is available in 31 languages.

Learn more at panelica.com⁠.


OpenLiteSpeed is a trademark of LiteSpeed Technologies and is licensed under the GPLv3. This image bundles OpenLiteSpeed, lsphp, WP-CLI, and the LiteSpeed Cache plugin.

Tag summary

Content type

Image

Digest

sha256:b47156e33…

Size

298.8 MB

Last updated

3 months ago

docker pull panelica/openlitespeed-wordpress