Skip to content

Test Code for Lumen API with Database, configured with traefik load balancer

Notifications You must be signed in to change notification settings

slimprepdevops/lumen-docker

 
 

Repository files navigation

Lumen API Dockerized

Set up

  • Clone project from the GitHub repository
git clone https://github.com/slimprepdevops/lumen-docker.git

Build and run the project with docker

  • Ensure you have Docker running on the background. Then run the command below on the root directory of the project
docker-compose up -d

Database migration and seed

  • Run the docker command below to migrate and seed the database
docker exec lumen php artisan migrate:fresh --seed
  • The project should be running on port 8085, So all endpoints can be accessed via the base URL below;
localhost:8085/api/v1/

API Documentation

https://documenter.getpostman.com/view/2811984/UzBnsSca

Postman Collection

https://www.getpostman.com/collections/b3bace025d87b09d03d0

About

Test Code for Lumen API with Database, configured with traefik load balancer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 95.6%
  • Dockerfile 3.7%
  • Shell 0.7%