This repository contains an image to up container laravel
https://hub.docker.com/repository/docker/cabralricardo/laravel
- composer install or
- composer install --ignore-platform-reqs -> in error case
https://getcomposer.org/doc/00-intro.md#installation-linux-unix-macos
- create a new file .env and copy content .env.example
- changes:
- DB_HOST=127.0.0.1 to DB_HOST=db
- DB_PASSWORD= to DB_PASSWORD=root
- REDIS_HOST=127.0.0.1 to REDIS_HOST=redis
docker-compose up -d --build
docker-compose down