docker-compose build
At this moment, Docker will execute all configurations that we set up. When it’s done, you can launch your # containers with:
docker-compose up -d
I will not explain how Docker because this is not the subject, but for keep going this post you have to understand two things :
- Each container is one linux distribution with one component
- Each container have one root access by default
docker exec -it -u 'container_name' bash
docker exec -it -u dev 'container_name' bash
go to Home (sf4)
cd /home/wwwroot/sf4
install symfony4 with composer
composer create-project symfony/skeleton my-temp-folder
get the project to the root path
cp -Rf /home/wwwroot/sf4/my-temp-folder/. .
rm -Rf /home/wwwroot/sf4/my-temp-folder
Now launch our browser with localhost