Open MuhammadAhsanDonuts opened 2 weeks ago
Hi, your mauticweb environment variables should be names with MAUTIC prefix, not MYSQL_: MAUTIC_DB_HOST: db MAUTIC_DB_PORT: 3306 MAUTIC_DB_DATABASE: mautic MAUTIC_DB_USER: mautic MAUTIC_DB_PASSWORD: mautic_password
Hi, I have been trying to setup Mautic with docker-compose, and it is giving me this error and am unable to resolve that. Any help would be greatly appreciated.
`version: '3.7'
services: mautic_web: image: mautic/mautic:5.1-apache container_name: mautic_web ports:
db
db: image: mysql:5.7 container_name: mautic_db environment: MYSQL_DATABASE: mautic MYSQL_USER: mautic MYSQL_PASSWORD: mautic_password MYSQL_ROOT_PASSWORD: root_password volumes:
volumes: mautic-config: mautic-media: mautic-logs: mautic-db: `
Error:
mysqladmin: connect to server at '' failed error: 'Can't connect to server on 'localhost' (99)' Check that mariadbd is running and that the socket: '/run/mysqld/mysqld.sock' exists! mysqladmin: connect to server at '' failed error: 'Can't connect to server on 'localhost' (99)' Check that mariadbd is running and that the socket: '/run/mysqld/mysqld.sock' exists! mysqladmin: connect to server at '' failed error: 'Can't connect to server on 'localhost' (99)' Check that mariadbd is running and that the socket: '/run/mysqld/mysqld.sock' exists! mysqladmin: connect to server at '' failed error: 'Can't connect to server on 'localhost' (99)' Check that mariadbd is running and that the socket: '/run/mysqld/mysqld.sock' exists! mysqladmin: connect to server at '' failed error: 'Can't connect to server on 'localhost' (99)' Check that mariadbd is running and that the socket: '/run/mysqld/mysqld.sock' exists!