Start with the Mautic project’s supported release and matching Compose examples. Treat a Compose file pinned to Mautic 5 as a historical configuration and check its compatibility before reusing it.
Prepare a new installation
Read the image documentation for the database version, persistent directories and required variables. Keep secrets outside the checked-in Compose file. Start in a test environment and verify the application, its database connection and required scheduled jobs. Bind only necessary endpoints.
Plan an upgrade separately
Back up the database and persistent volumes and rehearse the restore. Verify compatible plugins, themes and cron or worker services. Check the release’s migration instructions before changing image tags and test delivery only against an approved isolated destination.
Docker Compose configuration and verification
