To deploy Mautic (an open-source marketing automation platform) using the mautic/mautic
Docker image on the Akash Network, you’ll need to define an SDL (Stack Definition Language) file, configure your environment, and deploy the app. Below is a step-by-step guide:
1. Requirements
- Install the Akash CLI on your system (Guide).
- Fund your Akash wallet with AKT tokens to pay for deployment costs.
- A domain name or Akash’s automatically generated domain for accessing Mautic.
- Basic knowledge of Docker and Akash SDL configuration.
2. Create the SDL File
The SDL file defines the deployment configuration for Mautic on Akash. Below is a sample mautic.yml
file:
3. Key Configuration Notes
- Services:
mautic
: The Mautic container using themautic/mautic
image.mautic-db
: A MariaDB container to serve as the database backend.
- Environment Variables:
- Adjust the
MYSQL_
andMAUTIC_DB_
environment variables according to your needs.
- Adjust the
- Storage:
- The
storage
size for bothmautic
andmautic-db
should be sufficient to handle your data needs.
- The
- Pricing:
- Modify the
amount
underpricing
to match your budget.
- Modify the
4. Deploy Mautic on Akash
-
Initialize Deployment: Save the
mautic.yml
file and deploy it with Akash CLI: -
Bid and Lease: After submitting the deployment, watch for bids and create a lease:
-
Access the Deployment: Use Akash’s automatically generated domain or map your custom domain using a CNAME record.
5. Post-Deployment
- Visit the Mautic URL (e.g.,
http://<akash_domain>
) and complete the setup wizard. - Enter the database details matching your MariaDB container environment variables:
- Host:
mautic-db
- Database:
mautic
- Username:
mautic
- Password:
mautic_password
- Host:
6. Customization (Optional)
- To use SSL, set up a reverse proxy like NGINX or use services like Cloudflare for HTTPS.
- Scale resources by updating the
compute
section in the SDL file.
7. Updating Mautic
If you need to update the Mautic version, modify the image in the SDL file and redeploy:
By following these steps, you can successfully deploy and manage Mautic on the Akash Network.