mautic / docker-mautic

Docker Image for Mautic
https://www.mautic.org
374 stars 278 forks source link

Missing enviromental variables in run time #290

Open grinono opened 2 months ago

grinono commented 2 months ago

I'm having an environmental vars issue.

I run the docker image in kubernetes with the envs like MYSQL_HOST configured. when in running in shell > echo $MYSQL_HOST is returns the right value but the logs of the machine show >

mysqladmin: connect to server at '' failed 2024-08-01T13:38:09.542655996Z error: 'Can't connect to server on 'localhost' (111)' 2024-08-01T13:38:09.542661436Z Check that mariadbd is running and that the socket: '/run/mysqld/mysqld.sock' exists!

i assume '' means the env's like MYSQL_HOST are not picked up. How to resolve this?

gabrielrufino commented 2 months ago

Same problem :(