This diagram showcases a Docker Host setup with two isolated networks—net-1 and net-2—each containing application and database containers, along with persistent data volumes.
net-1:
Hosts two application containers: app-1 and app-2
Connects to two MySQL database containers: mysql-db and mysql-db-2
Shares a common volume labeled petclinic-data for data persistence
net-2:
Contains one application container: app-3
Connects to a separate database container: mysql-db-3
Uses its own volume: petclinic-data-2
A dashed line from app-3 in net-2 to mysql-db-2 in net-1 indicates cross-network communication, highlighting flexibility in container interactions across isolated environments.
This setup demonstrates best practices in Docker networking, data isolation, and volume management for scalable and maintainable containerized applications.