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 ```