Hey, so a couple days ago I started moving all my services into containers. I have a MariaDB containers that holds multiple databases inside a single container for these services and I had it setup correctly and everything was working smoothly for a couple of days. Now I rebooted my machine and now these services can’t connect to any database and I’m not sure why or what’s going on.
I can access the container via
docker exec -it mysql -uroot -ppassword and can also access it from another machine using
mysql --host 192.168.1.162 --port 3306 -uroot -ppassword with no problems however these other containers are giving me errors that indicate they can’t connect to the database what so ever with error messages like:
[2021-09-13 05:48:24.530][service::util][WARN] Can't connect to database, retrying: DieselCon. [CAUSE] BadConnection( "Can't connect to MySQL server on '192.168.1.162' (115)", )
2021/09/13 05:49:49 [FATAL] [.../internal/route/install.go:75 GlobalInit()] Failed to initialize ORM engine: open database: dial tcp 192.168.1.162:3366: connect: connection refused
I would appreciate any and all help.