https://github.com/klipitkas/laravel-docker
Laravel with docker-compose.
https://github.com/klipitkas/laravel-docker
docker-image docker-images fpm laravel laravel-docker laravel-framework laravel-installer laravel6 php php-fpm stack
Last synced: 3 months ago
JSON representation
Laravel with docker-compose.
- Host: GitHub
- URL: https://github.com/klipitkas/laravel-docker
- Owner: klipitkas
- Created: 2018-06-19T16:32:28.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-09-11T16:55:06.000Z (over 5 years ago)
- Last Synced: 2025-02-27T06:27:41.495Z (over 1 year ago)
- Topics: docker-image, docker-images, fpm, laravel, laravel-docker, laravel-framework, laravel-installer, laravel6, php, php-fpm, stack
- Language: Dockerfile
- Homepage:
- Size: 10.7 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# A local Laravel development stack
A repository containing the required 🐳 Docker images for running a portable
Laravel installation.
Laravel + Docker = ❤️
### STACK
- php **7.3** + nginx **1.16.1** (alpine)
- supervisord **4.1.0** (alpine)
- mariadb **10.4** (bionic)
- phpmyadmin
- redis **5** (alpine)
- mongodb **4.2.6**
### VOLUMES
We are now using named volumes, for the databases. To view the available volumes you can do:
```shell
$ docker volume ls
```
### START
Open a terminal and execute the following command in order to start the stack:
```shell
$ docker-compose up -d
```
### STOP
In order to stop the stack execute the following command:
```shell
$ docker-compose down
```
### REBUILD
Use:
```shell
$ docker-compose up --build -d
```
or:
```shell
$ docker-compose build
```
### DELETE THE VOLUMES
**WARNING**: This is a potentially catastrophic action and will delete any data
in those volumes:
```shell
$ docker-compose down -v
```
### DOES IT WORK
Add the Laravel files in the mounted directory and then visit:
- http://localhost
### FAQ
If you need access from a container to another instead of using the internal
IP addresses of the containers, you can instead use their hostnames:
- app (for the php-fpm/nginx container)
- database (for the mariadb container)
- pma (for the phpmyadmin container)
- queue (for the redis container)
- mongo (for the mongodb container)
### BUG REPORTS - FEATURE REQUESTS
For 🐞 reports please [open an issue](https://github.com/klipitkas/laravel-docker/issues).