Ignition Docker with sql database


How do we need to do to connect a gateway running in docker with a sql database (Also in docker).

My connection stay always in faulted. When trying to connect with workbench the connection is working.


Use the container name. If the containers are on the same docker network, the hostname is the container name.

If you’re running independent containers, you could try having Ignition connect to the database by looping back to your host via host.docker.internal. That name will resolve to the IP of your host system, against which you can then connect to the published port you setup for the database (which you’re using to connect via workbench).