From e98d4189de0441fdc44e979968981f7a8a707e5a Mon Sep 17 00:00:00 2001 From: Jonathan Rosenbaum Date: Thu, 5 Jun 2025 18:35:14 +0000 Subject: [PATCH] Added some optional instructions. --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index a5853fa..3f32147 100644 --- a/README.md +++ b/README.md @@ -60,6 +60,15 @@ HTML_VOLUME=test_html_staging 1. Stop the current containers and remove volumes: ```bash docker compose down -v + +# Optional Steps + +# Clean volumes +grep -E 'DB_VOLUME|CONTENT_VOLUME' .env | cut -d '=' -f2 | xargs -I {} sh -c 'docker volume rm {} 2>/dev/null; docker volume create {}' + +# Remove Wordpress Image +docker rmi $(grep IMAGE_WEB .env | cut -d '=' -f2) + ``` 2. Update WordPress version: @@ -92,6 +101,13 @@ chmod -R [appropriate-permissions] wp-content/ 5. Optional: Update database if needed: ```bash +(In the database container) +apt-get update && \ + apt-get install -y mariadb-client && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* + +(From the host) ./update-db ```