This setup will work for your all PHP projects. You need to put these all files in your project root directory.
- PHP (7.3.x)
- MySQL (5.7.x)
- Nginx
- PHPMyAdmin
- Composer
- Custom PHP.ini & phpmyadmin.ini
To start the services:
docker-compose up -d
To see current running containers:
docker ps
To restart/stop services:
docker-composer stop
docker-composer restart
SSH into a container ( You'll get container name from docker ps
command )
docker exec -it <container name> /bin/bash