This projects runs a laravel (php8.1-fpm) application on nginx and establish connection with mysql database.
git clone <URL>
cd
sudo docker-compose build
sudo docker-compose up -d
sudo docker-compose down
Configurations to run PHP NGINX MYSQL using docker compose
version: '3' . . .
Configurations of application in Dockerfile
FROM php:8.1-fpm . . .
Nginx configuration setup
server { . . . }
Other files setup in this step.
Edit the .env
file env variables to make connection with mysql
Build using sudo docker-compose build
command
Running application using sudo docker-compose up -d