Last updated April 4, 2019

Network communication is essential when developing for a multi-tier web application like Drupal. Docker automatically isolates each container it runs, only allowing explicit ports to be exposed to the host OS. Docker Compose takes this one step further.

In this tutorial, we'll:

  • Explain how Docker isolates containers
  • Expose a container's ports to the host OS
  • Re-map ports from the container to the host OS