Added some optional instructions.
This commit is contained in:
parent
e0d3bd7548
commit
e98d4189de
16
README.md
16
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
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user