Production-ready WordPress on OpenLiteSpeed with LiteSpeed Cache and Redis. Maintained by Panelica.
244
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.
| Component | Details |
|---|---|
| Web server | OpenLiteSpeed (latest), HTTP/3 (QUIC), Brotli compression |
| Page cache | LiteSpeed Cache (LSCache), pre-configured |
| Object cache | Redis, pre-configured |
| PHP runtime | lsphp 8.2 / 8.3 / 8.4 (selectable), OPcache + JIT |
| Application | WordPress (latest stable, installed on first start) |
| Tooling | WP-CLI, LiteSpeed Cache plugin |
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.
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
| Variable | Default | Description |
|---|---|---|
PHP_VERSION | 8.4 | PHP runtime: 8.2, 8.3, or 8.4 |
SITE_URL | http://localhost | Public site address; set to your domain in production |
WP_TITLE | WordPress | Site title |
WP_ADMIN_USER | admin | Administrator username |
WP_ADMIN_PASSWORD | generated | Administrator password; a strong value is generated if unset |
WP_ADMIN_EMAIL | [email protected] | Administrator email address |
DB_HOST | mysql | Database hostname |
DB_NAME | wordpress | Database name |
DB_USER | wordpress | Database username |
DB_PASSWORD | — | Database password |
REDIS_HOST | redis | Redis hostname (object cache) |
REDIS_PORT | 6379 | Redis port |
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.
| Port | Protocol | Purpose |
|---|---|---|
80 | TCP | HTTP |
443 | TCP / UDP | HTTPS and HTTP/3 (QUIC) |
SITE_URL to the public domain and terminate
TLS at a reverse proxy or load balancer where applicable.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.
Content type
Image
Digest
sha256:b47156e33…
Size
298.8 MB
Last updated
3 months ago
docker pull panelica/openlitespeed-wordpress