- Install Docker on your local machine:
| OS | Tutorial URL |
|---|---|
| LinuxOS | https://docs.docker.com/engine/install/ubuntu/ |
| MacOS | https://www.docker.com/products/docker-desktop/ |
- Launch the following command to pull image and install container
docker compose up --build -d
- To enter into the php container, type in your terminal
docker exec -it portfolio_project_php sh
- Make install
composer install
- if we have donc view the web site, in the php container
npm run install
You can execute command without enter into container. For example composer install could be launched outside the container with the following command
docker exec -it portfolio_project_php composer install