Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Mautic config
version: '3'
networks:
default:
driver: bridge
webproxy:
external: true
services:
db:
image: mariadb:10.2.14
restart: unless-stopped
ports:
- 3342:3306
volumes:
- /storage/mautic/mysql:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: "root"
MYSQL_DATABASE: <db_name>
MYSQL_USER: <db_user>
MYSQL_PASSWORD: <db_pass>
mautic:
networks:
- webproxy
- default
depends_on:
- db
image: mautic/mautic:latest
restart: unless-stopped
volumes:
- /storage/mautic/mautic_data:/var/www/html
environment:
MAUTIC_DB_HOST: db
MAUTIC_DB_NAME: <db_name>
MAUTIC_DB_USER: <db_user>
MAUTIC_DB_PASSWORD: <db_pass>
VIRTUAL_HOST: host.domain.com
LETSENCRYPT_HOST: host.domain.com
LETSENCRYPT_EMAIL: mail@mail.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment