Added some optional instructions.

This commit is contained in:
Jonathan Rosenbaum 2025-06-05 18:35:14 +00:00
parent e0d3bd7548
commit e98d4189de

View File

@ -60,6 +60,15 @@ HTML_VOLUME=test_html_staging
1. Stop the current containers and remove volumes: 1. Stop the current containers and remove volumes:
```bash ```bash
docker compose down -v 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: 2. Update WordPress version:
@ -92,6 +101,13 @@ chmod -R [appropriate-permissions] wp-content/
5. Optional: Update database if needed: 5. Optional: Update database if needed:
```bash ```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 ./update-db
``` ```