This directory provides a basic setup to run Mautic using Docker Compose. It uses the official Apache-based Mautic Docker image and includes a MySQL container.
Important
Security Notice:
Be sure to change the MYSQL_PASSWORD and MYSQL_ROOT_PASSWORD environment variables under .env before deploying to production.
-
Clone this repository:
git clone https://github.com/mautic/docker-mautic.git cd docker-mautic/examples/basic -
Start the environment:
docker compose up -d
-
Access Mautic in your browser at: http://localhost:8080
You can configure environment variables in the .env file. Make sure to update the following before deploying to production:
MYSQL_PASSWORD=mautic_db_pwd
MYSQL_ROOT_PASSWORD=changemeYou may also want to map volumes or adjust ports as needed.
To stop and remove the containers:
docker compose downTo remove all volumes (this will delete your data):
docker-compose down -v