feat: seed required wordpress plugins via wp-cli

This commit is contained in:
2025-11-16 11:10:08 +08:00
parent 654956a154
commit 30272ecf73
4 changed files with 54 additions and 0 deletions

View File

@@ -22,6 +22,7 @@ This repository contains a hardened Docker Compose stack for the DigitechFlow Wo
## Services
- **db**: `mysql:latest` with persistent volume `db_data/`.
- **wordpress**: `wordpress:php8.3-fpm` serving PHP over FastCGI.
- **wpcli_seed**: one-shot `wordpress:cli` job that installs/activates plugins listed in `config/plugins.txt`.
- **wordpress_nginx**: `nginx:latest` front-end with custom config tuned for Traefik and FastCGI.
- **redis**: `valkey/valkey:latest` for object caching with persistence and healthcheck.
@@ -30,6 +31,7 @@ This repository contains a hardened Docker Compose stack for the DigitechFlow Wo
- `config/nginx/default.conf` contains gzip, caching, and FastCGI tuning. Adjust if you need custom routes.
- `wordpress.ini` sets PHP limits and Opcache recommendations.
- Local data directories (`db_data/`, `wordpress_data/`, `redis_data/`) plus `wp-config.php` are gitignored to prevent leaking content/secrets.
- `config/plugins.txt` lists plugin slugs to auto-install. Add one per line and rerun `docker compose up wpcli_seed`.
## Operations
- Update images: `docker compose pull && docker compose up -d`.