For more information visit Docker install .
git clone https://github.com/agusescalante/deliveryApp.git
Create an .env file in the project, with the following environment variables.
- DB_CONNECTION=pgsql
- DB_HOST=database
- DB_PORT=5432
- DB_DATABASE=mydb
- DB_USERNAME=myuser
- DB_PASSWORD=thisisasecretpassword
In the project directory we need to install the dependencies, since in the repository they are ignored
sudo docker run --rm -v $ (pwd): / app composer install
We need to create a key in the .env file
php artisan key: generate
docker-compose up -d
If everything went well, in the browser with the address localhost: 8080, we see the application