Map additional ports

As it explained in the Connect to MySQL section, Docker maps MySQL's 3306 port to a random port on This happens because port 3306 is set in the docker-compose.yml file:

      - "3306"

If you need to map other ports, simply add them to the ports section and restart the container.

Example for Solr

If you use one of Drupal containers with Solr included, your Solr URL most likely looks like this:

In this case, to play with Solr queries: