A repository containing the required 🐳 Docker images for running a portable Laravel installation.
Laravel + Docker = ❤️
- 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
We are now using named volumes, for the databases. To view the available volumes you can do:
$ docker volume ls
Open a terminal and execute the following command in order to start the stack:
$ docker-compose up -d
In order to stop the stack execute the following command:
$ docker-compose down
Use:
$ docker-compose up --build -d
or:
$ docker-compose build
WARNING: This is a potentially catastrophic action and will delete any data in those volumes:
$ docker-compose down -v
Add the Laravel files in the mounted directory and then visit:
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)
For 🐞 reports please open an issue.