How connect Strapi to MariaDB

Hi, 

Ive need to help for connect Strapi (On the docker) with MariaDB 

MariaDB is local installed on the Debian and I would like install Strapi on the docker with Portainer. 

But i’ve this error : 

ERROR: connect ECONNREFUSED 127.0.0.1:1337

MariaDB it’s good (run ok) , i use with other container … but how i can resolve this connection problem …? 
Or if you i’ve  an other solution (docker-compose , …) 
Thank’s (: 

When you created you user within MariaDB did you use a specific IP/localhost or did you use something like myUser@’%’? Not sure how it is on docker but you would need the containers external IP (if it is static) or allow all and just firewall it at the container host level

1 Like