- Pull the Laravel project into the
srcfolder: - Update the 'mysql.env' file to match the configuration in the Laravel project's '.env' file.
- Ensure that the PHP Docker version specified in 'php.root.dockerfile' matches the PHP version specified in the Laravel project's 'composer.json'
- If the Laravel root project is located in the 'public' folder, modify the root directory in the 'default.conf' file from '/var/www/html/' to '/var/www/html/public/'."
Build the Docker images by running the following command:
docker-compose buildStart the Docker containers using the following command:
docker-compose up -dThe -d flag runs the containers in the background.
Note: When running docker-compose, it will automatically execute composer install within the src folder.
- App: http://localhost:8000
- MySQL:
localhost:3307**. Use the configured credentials from the.envfile.
To stop the Docker containers, run:
docker-compose down