Compare commits

..

6 Commits

Author SHA1 Message Date
chemi ddb249cf9e Typo corrected 2021-05-12 11:41:59 +00:00
chemi 5090f636db Updated README 2021-05-12 11:41:36 +00:00
chemi c07f4a2abd nginx site config file
The site config file added must go to the nginx configuration directory in the gateway server
2021-05-12 11:39:27 +00:00
chemi f3bbf8f8f9 Merge pull request 'master' (#1) from chemi/DockerWordpress_improvements:master into master
Reviewed-on: https://gitea.cect.org/Public/DockerWordpress/pulls/1
2021-05-12 10:25:30 +00:00
chemi 08395fd53f SITEURL
Added SITEURL environment variable to allow phpmyadmin accession through a directory of the main WP url
2021-05-12 10:23:06 +00:00
chemi f3d2bb5626 Added PMA_ABSOLUTE_URI to phpmyadmin container
Adding PMA_ABSOLUTE_URI to the phpmyadmin docker section will allow to access the phpmyadmin through the directory phpmyadmini of the main WP site URL. This way one domain is used instead of two (one for WP and the other for phpmyadmin)
2021-05-12 10:19:26 +00:00
4 changed files with 30 additions and 2 deletions
+4 -1
View File
@@ -22,7 +22,7 @@ The subdirectories represent different wordpress deployments:
added redis container to myadmin added redis container to myadmin
**COMMON .env VARIABLES for all the deploymenst** **COMMON .env VARIABLES for all the deployments**
.env VARIABLES .env VARIABLES
@@ -39,3 +39,6 @@ MYSQL_PASSWORD: the password for the MYSQL_USER
MYSQL_WP_DATABASE: the wordpress database name MYSQL_WP_DATABASE: the wordpress database name
EX_PORT: the port to access the wordpress EX_PORT: the port to access the wordpress
## nginx configuration file
The nginx configuration file must be placed in the nginx configuration directory of the host that will make reverse proxy to our site
+1 -1
View File
@@ -5,4 +5,4 @@ MYSQL_PASSWORD=The_wpuser_password_here
MYSQL_WP_DATABASE=wordpressdb MYSQL_WP_DATABASE=wordpressdb
EX_PORT=8000 EX_PORT=8000
MY_PORT=8100 MY_PORT=8100
SITEURL=https://example.com
+1
View File
@@ -43,3 +43,4 @@ services:
MYSQL_USER: $MYSQL_USER MYSQL_USER: $MYSQL_USER
MYSQL_PASSWORD: $MYSQL_PASSWORD MYSQL_PASSWORD: $MYSQL_PASSWORD
MYSQL_ROOT_PASSWORD: $MYSQL_ROOT_PASSWORD MYSQL_ROOT_PASSWORD: $MYSQL_ROOT_PASSWORD
PMA_ABSOLUTE_URI: $SITEURL/phpmyadmin/
+24
View File
@@ -0,0 +1,24 @@
server
{
server_name nombre.servidor.com;
location /phpmyadmin/
{
proxy_pass http://192.168.1.91:8008/; # phpmyadmin container exposed port. Trailing / is very important
proxy_buffering off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
proxy_set_header X-Forwarded-Proto https;
}
location /
{
proxy_pass http://192.168.1.91:8009; # WP container exposed port
proxy_buffering off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
proxy_set_header X-Forwarded-Proto https;
}
}