Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ucan-lab/docker-laravel-apache
https://github.com/ucan-lab/docker-laravel-apache
apache composer docker laravel mysql php
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ucan-lab/docker-laravel-apache
- Owner: ucan-lab
- License: mit
- Created: 2020-11-06T10:37:35.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-12-15T20:18:03.000Z (about 1 year ago)
- Last Synced: 2023-12-15T22:14:24.485Z (about 1 year ago)
- Topics: apache, composer, docker, laravel, mysql, php
- Language: Makefile
- Homepage:
- Size: 8.79 KB
- Stars: 15
- Watchers: 4
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docker-laravel-apache 🐳
![License](https://img.shields.io/github/license/ucan-lab/docker-laravel-apache?color=f05340)
![Stars](https://img.shields.io/github/stars/ucan-lab/docker-laravel-apache?color=f05340)
![Issues](https://img.shields.io/github/issues/ucan-lab/docker-laravel-apache?color=f05340)
![Forks](https://img.shields.io/github/forks/ucan-lab/docker-laravel-apache?color=f05340)## Introduction
Build a simple laravel development environment with docker-compose.
Apache version of [docker-laravel](https://github.com/ucan-lab/docker-laravel).## Usage
```bash
$ git clone [email protected]:ucan-lab/docker-laravel-apache.git
$ cd docker-laravel-apache
$ make create-project # Install the latest Laravel project
$ make install-recommend-packages # Not required
```http://localhost
Read this [Makefile](https://github.com/ucan-lab/docker-laravel-apache/blob/master/Makefile).
## Container structure
```bash
├── web
└── db
```### web container
- Base image
- [php](https://hub.docker.com/_/php):7.4-apache-buster
- [composer](https://hub.docker.com/_/composer):2.0
- [node](https://hub.docker.com/_/node):node:14-buster### 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
```