Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 2
Message 1 of 2

How connect Strapi to MariaDB


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 : 

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 (: 


1 Reply
Ground Controller Lvl 1
Message 2 of 2

Re: How connect Strapi to MariaDB

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