I’m trying to install n8n.io and invoiceninja in a docker containers inside of CyberPanel. I’ve add the .env variables to both containers but I can’t seem the get them to connect to the databases that I’ve created for them. I keep getting the following error:
There was an error initializing DB: “connect ECONNREFUSED 172.17.0.1:3306”
I’ve tried 127.0.0.1 and localhost; nothing works. Is anyone able to help me get this up and running?
I’ve created the reverse proxy and generated the api key via the cli. I can’t figure out this database connection thing with either installation. It’s driving me nuts. I’ve thrown everything I can think of at it. I thought maybe the firewall is preventing access from the container to 3306 but the firewall is currently turned off.
Sadly, If it fails then it has failed! I have done this for several clients with no success. Docker images that depend on other images or need special tinkering never work from my experience.