cp .env.example .env
# then set your enviroments in .env file
# be careful to keep DB_HOST as 'db', DB_PORT 3306 and DB_USERNAME different than root
# DB_HOST=db
# DB_PORT=3306
# DB_USERNAME=someuser
docker-compose build
docker-compose up -d
docker exec app composer install
docker exec app php artisan key:generate
docker exec app php artisan migrate
docker exec app php artisan jwt:secret
# now your application is hosted in http://127.0.0.1:8001
docker exec app php artisan test
the api docs is provided/generated by swagger: http://127.0.0.1:8001/api/documentation
thanks for reading 💚