Docker Compose v2.1 Release Notes

    • 🔧 Healthcheck configuration can now be done in the service definition using the healthcheck parameter

    • Containers dependencies can now be set up to wait on positive healthchecks when declared using depends_on. See the documentation for the updated syntax. Note: This feature will not be ported to version 3 Compose files.

    • ➕ Added support for the sysctls parameter in service definitions

    • ➕ Added support for the userns_mode parameter in service definitions

    • Compose now adds identifying labels to networks and volumes it creates