perfectacle / spring-boot-kt-boilerplate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build

./gradlew clean bootBuildImage
docker-compose build # for nginx

Run

local

./gradlew bootRun --args='--spring.profiles.active=local'
curl localhost:8080/health # ok

docker-compose (nginx + spring boot)

docker-compose up -d
curl localhost/health # ok

change phase

dev

docker-compose down
export SPRING_PROFILES_ACTIVE=dev
docker-compose up -d
curl localhost/health # ok

live

docker-compose down
export SPRING_PROFILES_ACTIVE=live
docker-compose up -d
curl localhost/health # ok

About


Languages

Language:Kotlin 97.3%Language:Dockerfile 2.7%