https://github.com/intellisrc/docker-wp-litespeed-alpine
Wordpress using LiteSpeed Web Server in Alpine Linux
https://github.com/intellisrc/docker-wp-litespeed-alpine
Last synced: about 1 year ago
JSON representation
Wordpress using LiteSpeed Web Server in Alpine Linux
- Host: GitHub
- URL: https://github.com/intellisrc/docker-wp-litespeed-alpine
- Owner: Intellisrc
- License: mit
- Created: 2023-03-06T10:10:32.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-14T02:46:03.000Z (over 2 years ago)
- Last Synced: 2025-04-03T05:18:00.337Z (over 1 year ago)
- Language: PHP
- Size: 99.6 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# docker-wp-litespeed-alpine
Wordpress running with LiteSpeed and PHP 8 inside a Docker container running Alpine
## Docker
intellisrc/wp-litespeed-alpine:edge
Environment:
```
LS_SOFT_LIMIT=512M
LS_HARD_LIMIT=700M
PHP_MAX_WORKERS=20
WP_VER=latest
WP_PREFIX=wp_
DB_NAME=
DB_USER=
DB_PASSWORD=
DB_PASS=
DB_HOST=localhost
DB_CHARSET=utf8
OBJ_CACHE=none #options: memcached, redis
```
It will download the latest (or the version specified in "WP_VER")
## Docker Swarm
Example:
```yaml
services:
wp:
image: intellisrc/wp-litespeed-alpine:edge
volumes:
- type: bind
source: "/docker/sites/example/"
target: "/var/www/wp-content/"
networks:
- proxy_net
- database_net
environment:
DB_HOST: database_host
DB_USER: example_user
DB_NAME: wp_example
DB_PASS: *****************
WP_PREFIX: ex_
HTTPS_DOMAIN: example.com
LS_SOFT_LIMIT: 512M
LS_HARD_LIMIT: 700M
OBJ_CACHE: memcached
#WP_LANG: ja
healthcheck:
test: wget -q -O - http://localhost/health_check.php | grep "ok"
interval: 60s
retries: 2
timeout: 30s
deploy:
mode: replicated
replicas: 1
endpoint_mode: dnsrr
placement:
constraints:
- node.labels.wordpress == true
```