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 share Docker containers with other Docker containers. If, for example, I have a Docker container responsible for running MySQL/MariaDB, 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?