Skip to main content
100%

Teach Docker-compose - TP1

✓ Published0🌍 Public
SServuc
Last edited Nov 14, 2025
Created on Oct 11, 2018

Three Docker Compose configurations compare ways to manage MySQL data persistence and service networking. The examples use the `version: '2'` Compose API, defining `mysql` and `phpmyadmin` services with environment variables for database credentials and container ports. The first binds a local directory (`./data/db`) as a volume, the second declares a named volume (`mysql-data`) and explicit networks (`mysql-network`), and the third maps a host path (`/data/on/host/dir`). Each file shows YAML structures for `services`, `networks`, and `volumes`, highlighting how Compose handles data lifecycle differences.

AI-generated description

Similar vizzes