Compare commits

..

1 Commits
master ... main

Author SHA1 Message Date
ca505154b2 Merge pull request 'Correcting quick start' (#1) from master into main
Reviewed-on: #1
2025-06-01 21:36:11 -04:00
4 changed files with 4 additions and 24 deletions

View File

@ -1,8 +1,7 @@
# Wordpress - make a copy of wp-includes to compare with existing volumes # Wordpress - make a copy of wp-includes to compare with existing volumes
# 'docker-compose exec wordpress bash -c 'cd /var/www/html/wp-includes && grep wp_version version.php' # 'docker-compose exec wordpress bash -c 'cd /var/www/html/wp-includes && grep wp_version version.php'
ARG WORDPRESS_VERSION=user-defined FROM wordpress:6-fpm
FROM wordpress:${WORDPRESS_VERSION}
# ancient debian # ancient debian
#RUN apt update && apt -y install vim less #RUN apt update && apt -y install vim less

View File

@ -5,10 +5,9 @@ A Docker-based toolkit that streamlines WordPress upgrades using official images
## Project Configuration ## Project Configuration
### Project Name ### Project Name
This project requires a project name and wordpress version, which should be defined in an `.env` file: This project requires a project name, which should be defined in an `.env` file:
```bash ```bash
COMPOSE_PROJECT_NAME=test COMPOSE_PROJECT_NAME=test
WORDPRESS_VERSION=6-fpm
``` ```
### Database Host Configuration ### Database Host Configuration
@ -61,15 +60,6 @@ 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:
@ -102,13 +92,6 @@ 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
``` ```

View File

@ -7,8 +7,6 @@ services:
build: build:
context: . context: .
dockerfile: Dockerfile.wordpress_fpm dockerfile: Dockerfile.wordpress_fpm
args:
WORDPRESS_VERSION: ${WORDPRESS_VERSION}
image: ${IMAGE_WEB:-web} image: ${IMAGE_WEB:-web}
volumes: volumes:
- html:/var/www/html - html:/var/www/html

View File

@ -3,7 +3,7 @@
source ".env" source ".env"
website="https://$VIRTUAL_HOST" website="https://$VIRTUAL_HOST"
command="docker compose exec database mariadb" command="docker-compose exec database mysql"
echo $website echo $website