Is there a way to run my existing magento 2 project inside a docker container? I have an existing project that is run inside a vagrant but I'm encountering a lot of issue in the vagrant and we decided to use docker for this. But I don't know how to migrate my existing magento project from vagrant to docker. I have search for various tutorial but all of them teach how to install magento inside a docker so all DB contents and setup are made during this process. But what if I already have my DB and my projects setup. I just want to like COPY Paste my codes inside a docker container.
If anyone of you can show me step by step on what I should consider or do when I want to migrate my magento project to docker. So I was thinking like I need to migrate my DB first to my MYSQL/DB container then copy paste my code to somewhere and modify docker-compose.yml to somewhere... But I don't know how and what. Would appreciate any help please.
Also I would like to use docker-compose.yml here and I'm ok if a Dockerfile will be used together with the docker-compose.yml file