How it works...

Verify whether the Docker container has been created and is running successfully by executing the following command:

$ docker ps

This will render the following output:

Browsing http://localhost:8090/ as will give us the machine IP, hostname, port, and current database details as the response:

Moreover, inspecting my-bridge-network again will show us the mysql-container and web-application-container details in the Containers section, as follows:

$ docker network inspect my-bridge-network[  {    "Name": "my-bridge-network", "Id": ...

Get Go Web Development Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.