Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 601 Bytes

README.md

File metadata and controls

32 lines (26 loc) · 601 Bytes

Docker setup for PHP projects

This setup will work for your all PHP projects. You need to put these all files in your project root directory.

This setup has included:

  • 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