Could be used on Linux, OS X and Windows.
Also suitable for other PHP projects, feel free to modify Docker configuration as needed.
- PHP 7.4.26 on Apache 2.4.51
- MySQL 8.0.26
- PhpMyAdmin 5.1.1
- MongoDB 4.4
- Mongo Express 0.54.0
- Redis 6.2.6
- RedisInsight 1.11.0
- Clone this repo:
git clone git@github.com:geobas/docker-template-laravel.git yourproject
cd yourproject
rm -rf .git
- Build and run containers:
./start.sh app mysql phpmyadmin mongo mongo-express redis redisinsight
- Install Laravel or Lumen:
docker exec -it app-laravel bash
./install.sh
To stop Docker containers run:
./stop.sh
To delete Docker containers run:
./delete.sh
- App URL:
http://localhost:80
- PhpMyAdmin:
http://localhost:8080
- Mongo Express:
http://localhost:8081
- RedisInsight:
http://localhost:8001