evertramos / docker-wordpress

Wordpress Docker container using SSL Certificates with LetsEncrypt
https://evertramos.github.io/docker-wordpress/
MIT License
486 stars 155 forks source link

Problems when creating a second WordPress #24

Closed GoldraK closed 5 years ago

GoldraK commented 5 years ago

Hello, I have created another WordPress on the same machine and it is well generated and I have both installed, but randomly the first wordpress loses the connection with the database of its docker.

If I deactivate the second wordpress, the first works perfectly.

Thanks for the help.

evertramos commented 5 years ago

Please update the service name on both environment and start it over.

Update:

  1. Here - https://github.com/evertramos/docker-wordpress-letsencrypt/blob/4d44f5eb7a587416ed35e2147fee06511bad1f12/docker-compose.yml#L4

from db to site1-db and in the second file site2-db

  1. And here - https://github.com/evertramos/docker-wordpress-letsencrypt/blob/4d44f5eb7a587416ed35e2147fee06511bad1f12/docker-compose.yml#L16

fron wordpress to site1 and site2

Let me know if it worked!

GoldraK commented 5 years ago

Thanks work perfect now :)