- Step1: Make sure that Docker Desktop is running
- Step2: Download the Zipped file https://github.com/dipaish/web-dev-env/archive/refs/heads/main.zip
- Step3: Unzip it anywhere in your PC. Make sure that you don't delete this folder.
- Step4: Start your Visual Studio Code and open the folder that you have unzipped recently.
- Step5: Start terminal in Visual studio code and run the following command:
docker-compose up -d
- Service 1: MySQL Database Service (6034) >> localhost:6034
- Service 2: Apache PhP Environment (Port 81) >> localhost:81
- Service 3: phpmyadmin (Port 82) >> localhost:82
- src >> A folder where your php code is going to be located. A simple php code is there by default
The folder contains php.ini. If you need to configure your php setup, you can make required changes to the file. After making changes, execute the following command by starting terminal in Visual studio code:
docker compose up -d --build
- PHP (All-in-One PHP support, DEVSENSE)
- IntelliPHP - AI Autocomplete for PHP
- Use Docker Compose: https://docs.microsoft.com/en-us/visualstudio/docker/tutorials/use-docker-compose
- Definitive Guide to Docker Compose: https://gabrieltanner.org/blog/docker-compose