Database connection error after renaming container in Docker WP

Hey guys! I made the mistake of just renaming my nginx container to a more semantic name, and when I did, I completely lost connection to my mysqli database. I’m getting an error that I’ll attach. I have no idea how to re-link them. Any help would be GREATLY appreciated. Is there a way just to rebuild the servers if I destroy them and just reinstantiate the docker-composer file? Will that leave my files intact? Thanks in advance!

Wow – So, I figured it out, and it just proves how new to Docker I am. Literally just had to destroy all of the containers (because I guess Kitematic isn’t stable) and run docker-compose up. Easy peasy, though I’ll be sure to be cautious against Kitematic until it’s out of beta.