Docker-based self-hosted WordPress deployment system with: - Four-container stack (nginx, wordpress/php-fpm, mariadb, certbot) - Automatic SSL via Let's Encrypt with self-signed fallback - First-boot WordPress setup via WP-CLI (GeneratePress + child theme, plugins) - Interactive setup wizard and one-line install script - Backup, update, healthcheck, and SSL renewal scripts Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
18 lines
641 B
Bash
Executable File
18 lines
641 B
Bash
Executable File
#!/bin/bash
|
|
set -eo pipefail
|
|
|
|
# WebsiteBox SSL Renewal Helper
|
|
# Manually triggers a certificate renewal attempt via the certbot container.
|
|
# Automatic renewals are handled by the certbot container's built-in loop.
|
|
# Use this script only if you need to force an immediate renewal.
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
PROJECT_DIR="$(dirname "$SCRIPT_DIR")"
|
|
|
|
echo "Requesting certificate renewal..."
|
|
docker compose -f "${PROJECT_DIR}/docker-compose.yml" exec certbot \
|
|
certbot renew --deploy-hook "touch /var/run/certbot-signal/reload"
|
|
|
|
echo "Renewal attempt complete. Check logs for details:"
|
|
echo " docker compose logs certbot"
|