An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

![Logo](https://user-images.githubusercontent.com/1626965/152615266-02b42348-cec8-494d-b16a-2b104b34cb1d.png)

# 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```