# ifconfig | grep -A1 docker0
docker0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255
I tried switching the IP in the mysql data source to 172.17.0.1. Still fails with the same error
{"timestamp":"2022-07-26 22:24:24.319 -05:00","level":"error","msg":"Failed to ping DB","caller":"sqlstore/store.go:272","error":"dial tcp 172.17.0.1:3333: i/o timeout","retrying in seconds":10}
I’m wondering if there’s an issue with how I’ve structured the environment variables in the mattermost container:
MM_SQLSETTINGS_DRIVERNAME=mysql
MM_SQLSETTINGS_DATASOURCE=mmuser:REDACTED_PASSWORD@tcp(172.17.0.1:3333)/mattermost?charset=utf8mb4,utf8\u0026readTimeout=30s\u0026writeTimeout=30s
Btw thanks for your perseverance, you’ve been very helpful despite this issue!