Install using :
$ curl -fsSL https://get.docker.com -o get-docker.sh
$ sudo sh get-docker.sh
Install here : https://hub.docker.com/editions/community/docker-ce-desktop-windows/
Docker will ask you to install this : https://docs.microsoft.com/en-us/windows/wsl/wsl2-kernel
Install here : https://docs.docker.com/desktop/mac/install/
Install using :
sudo apt-get install docker-compose
Already included in Docker for Windows
Already included in Docker for macOS
Copy this project:
$ git clone git@github.com:MaxenceVacheron/simple-docker-LAMP.git
You can then simply insert your HTML/PHP files in src/
.
It is advised to set the volume accordingly in the docker-compose.yml file
$ docker-compose up --build
You can now access your local service with the following ports: