Files
wordpress_docker/README.md
2026-02-12 17:44:22 +01:00

34 lines
1.0 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Crispi Docker template
# Einrichten
```
echo "MYSQL_ROOT_PASSWORD=$( openssl rand -hex 16 )" > .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.
## Backups
Backups laufen automatisch im `backup` Container (Standard: täglich um 2:00 Uhr).
Konfigurierbar über `.env`:
- `BACKUP_SCHEDULE` Cron-Ausdruck (Standard: `0 2 * * *`)
- `BACKUP_RETENTION_DAYS` Alte Backups löschen nach X Tagen (Standard: `7`)
Backups landen in `./backups/`. Manuelles Backup auslösen:
```
docker compose exec backup /usr/local/bin/backup.sh
```