This commit is contained in:
2026-02-12 17:09:40 +01:00
parent 232159984c
commit 58856844ce
4 changed files with 82 additions and 10 deletions

View File

@@ -4,11 +4,22 @@
# Einrichten
```
echo "MYSQL_ROOT_PASSWORD=$( openssl rand -hex 16 )" > .env
MYSQL_DATABASE=wordpress >> .env
MYSQL_USER=wordpress >> .env
echo "MYSQL_DATABASE=wordpress" >> .env
echo "MYSQL_USER=wordpress" >> .env
echo "MYSQL_PASSWORD=$( openssl rand -hex 16 )" >> .env
echo "WP_PORT=8080" >> .env
echo "STATIC_PORT=8081" >> .env
```
## Redis Object Cache
After first `docker compose up`, install the **Redis Object Cache** plugin in WP Admin:
1. Plugins → Add New → search "Redis Object Cache" (by Till Krüss)
2. Install & Activate
3. Settings → Redis → "Enable Object Cache"
The `wp-config.php` already has the `WP_REDIS_HOST` and `WP_REDIS_PORT` constants set.
## Cron
Backup script in Cron einbinden nicht vergessen