adamzammit / limesurvey-docker

Production ready dockerised Limesurvey
GNU General Public License v3.0
86 stars 51 forks source link

Question: Is there any limitation on LIMESURVEY_DB_HOST? #11

Closed ghost closed 4 years ago

ghost commented 4 years ago

Hello

I try to use MySQL on my host but not a container. And my container bridge IP is 172.23.0.1 So I set LIMESURVEY_DB_HOST to "172.23.0.1:3306" But I always get MySQL connection error.

Is it possible to use LIMESURVEY_DB_HOST to connect to MySQL on my host?

Thanks!

adamzammit commented 4 years ago

Hi @amazonyuribana ,

There is no limitation to LIMESURVEY_DB_HOST. It sounds like mysql is not listening on that interface on your host. Alternatively you could put the container on the host network instead of the bridge network.

Adam

ghost commented 4 years ago

Hi @amazonyuribana ,

There is no limitation to LIMESURVEY_DB_HOST. It sounds like mysql is not listening on that interface on your host. Alternatively you could put the container on the host network instead of the bridge network.

Adam

Thanks! I figured out that the problem is the firewall which blocking connection to my host.