- Spring Boot
- Java 11
- MongoDB
- Docker
- Traefik
Clone this repository and run the following commands based on your orchestrator;
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
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
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
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.