I implemented a web application with node and using inside this application a SQL database. I created this database in MYSQL Workbench and everything worked while testing. Now I want to Dockerize this application and the problem is that I don't know how to integrate my database. On Google, I only found articles about how to set up a new database inside a Docker container, but I was wondering how I can access my existing database with all my added entries.
I already tried to connect to my localhost with my root-password and the right port in the yaml file, but the connection fails every time and says that the address 0.0.0.0:3306 is already existing.
docker-compose.ymlso we can see your current setup, otherwise we'd have to guess. The error the address 0.0.0.0:3306 is already existing implies that you try to start anothermysqlserver/container or you docker port forwarding on that port.