Compare commits
6 Commits
26eaa8b633
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| ddb249cf9e | |||
| 5090f636db | |||
| c07f4a2abd | |||
| f3bbf8f8f9 | |||
| 08395fd53f | |||
| f3d2bb5626 |
@@ -22,7 +22,7 @@ The subdirectories represent different wordpress deployments:
|
||||
|
||||
added redis container to myadmin
|
||||
|
||||
**COMMON .env VARIABLES for all the deploymenst**
|
||||
**COMMON .env VARIABLES for all the deployments**
|
||||
|
||||
.env VARIABLES
|
||||
|
||||
@@ -39,3 +39,6 @@ MYSQL_PASSWORD: the password for the MYSQL_USER
|
||||
MYSQL_WP_DATABASE: the wordpress database name
|
||||
|
||||
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
|
||||
@@ -5,4 +5,4 @@ MYSQL_PASSWORD=The_wpuser_password_here
|
||||
MYSQL_WP_DATABASE=wordpressdb
|
||||
EX_PORT=8000
|
||||
MY_PORT=8100
|
||||
|
||||
SITEURL=https://example.com
|
||||
|
||||
@@ -43,3 +43,4 @@ services:
|
||||
MYSQL_USER: $MYSQL_USER
|
||||
MYSQL_PASSWORD: $MYSQL_PASSWORD
|
||||
MYSQL_ROOT_PASSWORD: $MYSQL_ROOT_PASSWORD
|
||||
PMA_ABSOLUTE_URI: $SITEURL/phpmyadmin/
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user