jfernancordova / docker-spring-boot-api-dev

:whale: The containerized Spring Boot API development environment.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Spring Boot API Boilerplate Dockerized

  • Spring Boot
  • Java 11
  • MongoDB
  • Docker
  • Traefik

Prerequisites

Deployment

Docker Environments

Clone this repository and run the following commands based on your orchestrator;

Swarm Mode

Clone this repository and run the following commands:

cd docker-spring-boot-api-dev/
docker stack deploy -c docker-compose.yml docker-spring-boot-api-dev
# wait for the HEALTHCHECK in healthy mode

Docker Compose

Clone this repository and run the following commands:

cd docker-spring-boot-api-dev/
docker-compose up --build -d 
or to see the logs 
docker-compose -f docker-compose-dev.yml up 

Traefik - Proxy Reverse

Locally add in your etc/hosts the following domains to access for the browser:

127.0.0.1   spring-boot-api.local.com
127.0.0.1   mongo-express.local.com

Observations

This repo is useful to starting any app in spring boot with docker, the design of objects or structures inside the api, it is only an example, however, it has been added the postman collection in case you like this architecture and the product example.

About

:whale: The containerized Spring Boot API development environment.

License:MIT License


Languages

Language:Java 78.6%Language:Shell 9.3%Language:Dockerfile 8.3%Language:JavaScript 3.8%