https://github.com/shipwebdotjp/docker-laravel
Template for laravel on docker
https://github.com/shipwebdotjp/docker-laravel
Last synced: about 1 month ago
JSON representation
Template for laravel on docker
- Host: GitHub
- URL: https://github.com/shipwebdotjp/docker-laravel
- Owner: shipwebdotjp
- License: mit
- Created: 2021-05-02T12:29:36.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2023-08-11T13:24:12.000Z (almost 3 years ago)
- Last Synced: 2023-08-11T19:55:50.211Z (almost 3 years ago)
- Language: Makefile
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docker-laravel 🐳




## Introduction
Build a simple laravel development environment with docker-compose.
Supported version: Laravel 10
## Usage
```bash
$ git clone git@github.com:shipwebdotjp/docker-laravel.git
$ cd docker-laravel
$ make create-project # Install the latest Laravel project
$ make install-recommend-packages # Not required
```
http://localhost
Read this [Makefile](https://github.com/shipwebdotjp/docker-laravel/blob/master/Makefile).
## Tips
Read this [Wiki](https://github.com/shipwebdotjp/docker-laravel/wiki).
## Container structure
```bash
├── app
├── web
└── db
```
### app container
- Base image
- [php](https://hub.docker.com/_/php):8.1-fpm-buster
- [composer](https://hub.docker.com/_/composer):2.2
### web container
- Base image
- [nginx](https://hub.docker.com/_/nginx):1.24-alpine
- [node](https://hub.docker.com/_/node):20-alpine
### db container
- Base image
- [mysql](https://hub.docker.com/_/mysql):8.0
#### Persistent MySQL Storage
By default, the [named volume](https://docs.docker.com/compose/compose-file/#volumes) is mounted, so MySQL data remains even if the container is destroyed.
If you want to delete MySQL data intentionally, execute the following command.
```bash
$ docker-compose down -v && docker-compose up
```