From 9e987bb928319c2007e0d43f79d70f8843ac7e15 Mon Sep 17 00:00:00 2001 From: Jose Miguel Lopez Coronado Date: Wed, 5 Aug 2020 10:38:09 +0200 Subject: [PATCH] Added support to user variables in php.ini --- README.md | 25 +++++++++++++++++++++++-- basic/README.md | 14 +------------- basic/docker-compose.yml | 2 +- myadmin/README.md | 14 +------------- myadmin/docker-compose.yml | 1 + 5 files changed, 27 insertions(+), 29 deletions(-) diff --git a/README.md b/README.md index 906851c..2a1e513 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,9 @@ -This directory will contain several configuration files for the deployment of wordpress sites using docker -The subdirectories represent different wordpress deployment: +**DockerWordpress** is a repository to help you in the deployment of Wordpress instances using docker. + +All the persistent data is stored in subdirectories of the host local filesystem. No docker volumes are used in this version. + +The root directory contain several configuration files for the deployment of wordpress sites using docker +The subdirectories represent different wordpress deployments: - **basic**: MySQL and WordPress containers only @@ -16,3 +20,20 @@ The subdirectories represent different wordpress deployment: added redis container to myadmin +**COMMON .env VARIABLES for all the deploymenst** + +.env VARIABLES + +The variables in all the .env files are: + +CONTAINER_NAME: represents the sufix of the containers created + +MYSQL_ROOT_PASSWORD: the root password for the MySQL database + +MYSQL_USER: the user to own the wordpress database + +MYSQL_PASSWORD: the password for the MYSQL_USER + +MYSQL_WP_DATABASE: the wordpress database name + +EX_PORT: the port to access the wordpress diff --git a/basic/README.md b/basic/README.md index 34535e2..3709e37 100644 --- a/basic/README.md +++ b/basic/README.md @@ -8,16 +8,4 @@ INSTRUCTIONS .env VARIABLES -The variables in the .env file are: - -CONTAINER_NAME: represents the sufix of the containers created - -MYSQL_ROOT_PASSWORD: the root password for the MySQL database - -MYSQL_USER: the user to own the wordpress database - -MYSQL_PASSWORD: the password for the MYSQL_USER - -MYSQL_WP_DATABASE: the wordpress database name - -EX_PORT: the port to access the wordpress +The variables in the .env file are the common ones shown in the parent directory README.md diff --git a/basic/docker-compose.yml b/basic/docker-compose.yml index 7a01f6f..5a0a1bc 100644 --- a/basic/docker-compose.yml +++ b/basic/docker-compose.yml @@ -28,4 +28,4 @@ services: - WORDPRESS_DB_NAME=$MYSQL_WP_DATABASE volumes: - ./wordpress:/var/www/html - + - ./php/user.ini:/usr/local/etc/php/conf.d/user.ini diff --git a/myadmin/README.md b/myadmin/README.md index 88070db..f777dc2 100644 --- a/myadmin/README.md +++ b/myadmin/README.md @@ -10,18 +10,6 @@ If you need to access the phpMyAdmin just point your browser to http://hostname: .env VARIABLES -The variables in the .env file are: - -CONTAINER_NAME: represents the sufix of the containers created - -MYSQL_ROOT_PASSWORD: the root password for the MySQL database - -MYSQL_USER: the user to own the wordpress database - -MYSQL_PASSWORD: the password for the MYSQL_USER - -MYSQL_WP_DATABASE: the wordpress database name - -EX_PORT: the port to access the wordpress +The variables in the .env file are those in that appear in the parent directory README.md and the following additional ones: MY_PORT: the port to access the phpMyAdmin diff --git a/myadmin/docker-compose.yml b/myadmin/docker-compose.yml index bce5994..4003e58 100644 --- a/myadmin/docker-compose.yml +++ b/myadmin/docker-compose.yml @@ -28,6 +28,7 @@ services: - WORDPRESS_DB_NAME=$MYSQL_WP_DATABASE volumes: - ./wordpress:/var/www/html + - ./php/user.ini:/usr/local/etc/php/conf.d/user.ini phpmyadmin: depends_on: