diff --git a/Dockerfile.wordpress_fpm b/Dockerfile.wordpress_fpm index 0ca708c..e406d9c 100644 --- a/Dockerfile.wordpress_fpm +++ b/Dockerfile.wordpress_fpm @@ -1,7 +1,8 @@ # 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' -FROM wordpress:6-fpm +ARG WORDPRESS_VERSION=user-defined +FROM wordpress:${WORDPRESS_VERSION} # ancient debian #RUN apt update && apt -y install vim less diff --git a/docker-compose.first.yml b/docker-compose.first.yml index a3deec5..951d775 100644 --- a/docker-compose.first.yml +++ b/docker-compose.first.yml @@ -7,10 +7,12 @@ services: build: context: . dockerfile: Dockerfile.wordpress_fpm + args: + WORDPRESS_VERSION: ${WORDPRESS_VERSION} image: ${IMAGE_WEB:-web} volumes: - html:/var/www/html - environment: + environment: - WORDPRESS_DB_HOST=${WORDPRESS_DB_HOST:-database:3306} - WORDPRESS_DB_PASSWORD=${WORDPRESS_DB_PASSWORD:-fake} - VIRTUAL_HOST=${VIRTUAL_HOST:-wordpress}