I have to migrate my WordPress installation to my own server in order to get SSL working properly. It was originally on GoDaddy shared hosting, which doesn't allow for external SSL cert installation.
Being slightly paranoid and informed about security, I'd like to run the services inside of Docker containers to limit damage in a worst-case scenario.
What I'm not sure of is how to connect Docker containers. For example, I have a Docker container responsible for running MySQL/MariaDB and I don't know how I could share that service with another Docker container running FastCGI which is hosting and executing my WordPress PHP code.
My web server (NGINX) which is currently running outside of a Docker container won't have any problems proxying things along to an exposed port on a Docker container, but how will the FastCGI server (ie: PHP) be able to reach the MySQL container?
Is there a guide which details how to pair up multiple independent services like this in Docker?