Process Flow - docker-compose.yml structure
Start: Define version
Define services
For each service:
Set image/build
Set ports
Set environment variables
Set volumes
Define networks (optional)
Define volumes (optional)
End: Compose file ready
The docker-compose.yml file starts with a version, then defines services with their settings, optionally networks and volumes, ending with a ready configuration.