https://github.com/geobas/docker-template-laravel
:whale: Docker template for Laravel/Lumen applications
https://github.com/geobas/docker-template-laravel
docker docker-compose-template laravel lumen php
Last synced: 3 months ago
JSON representation
:whale: Docker template for Laravel/Lumen applications
- Host: GitHub
- URL: https://github.com/geobas/docker-template-laravel
- Owner: geobas
- Created: 2021-12-29T19:39:16.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-02-04T23:19:45.000Z (over 4 years ago)
- Last Synced: 2025-09-12T03:43:08.148Z (10 months ago)
- Topics: docker, docker-compose-template, laravel, lumen, php
- Language: Shell
- Homepage:
- Size: 42 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

# Docker template for Laravel/Lumen
Could be used on Linux, OS X and Windows.
Also suitable for other PHP projects, feel free to modify Docker configuration as needed.
## Included services
- 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
### Prepare the Docker template
1. Clone this repo:
```
git clone git@github.com:geobas/docker-template-laravel.git yourproject
cd yourproject
rm -rf .git
```
2. Build and run containers:
```
./start.sh app mysql phpmyadmin mongo mongo-express redis redisinsight
```
3. Install Laravel or Lumen:
```
docker exec -it app-laravel bash
./install.sh
```
### Stop and delete containers
To stop Docker containers run:
```
./stop.sh
```
To delete Docker containers run:
```
./delete.sh
```
### Main Endpoints
- App URL: ```http://localhost:80```
- PhpMyAdmin: ```http://localhost:8080```
- Mongo Express: ```http://localhost:8081```
- RedisInsight: ```http://localhost:8001```