I am trying to get Emoncms installed on my Qnap Nas.
I could not get the docker compose file to work on the Qnap so I went ahead and created the containers for MySQL and Emoncms manually.
MySQL is installed and works when I connect to it from my PC db client.
I have manually created an Emoncms user with full permissions to create tables and have also created an Emoncms database schema.
I created a container from the Emoncms latest image and can run it up supplying all the environment options for MySQL, redis, mqtt etc.
When I start up the container and hit port 80 it returns an error message saying that the php fails on getaddrinfo for the database.
I am new to docker and I don’t know how php works either so I do not know how to diagnose this connectivity issue.
Can anyone provide any pointers on what configuration I can change to get the two containers to talk to each other?
The mysql-host property of the Emoncms container is set to the DNS name of my Nas and the mysql-port is set to the host port of the Nas that is mapped to the MySQL container port.
Any suggestions would be greatly appreciated.