Navigation Menu

Skip to content

tsweets/obrien-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTML Notes:

Docker Build

mvn clean compile package dockerfile:build

Environment Vars

SPRING_PROFILES_ACTIVE = dev (or prod)

Push to Docker Hub

docker tag spring-boot-thymeleaf:latest tsweets/spring-boot-thymeleaf:latest docker push tsweets/spring-boot-thymeleaf:latest

Run Example:

Local
docker run -p 80:8080 --env SPRING_PROFILES_ACTIVE=dev spring-boot-thymeleaf

Production
docker run -p 80:8080 --env "SPRING_PROFILES_ACTIVE=prod" spring-boot-thymeleaf:latest

Run in Intellij

Add to VM options -Dspring.profiles.active=dev

Start Script

\#/bin/bash docker run -d -p 8888:8888 -v "/var/log/spring-boot-thymeleaf:/spring-boot-thymeleaf" --env "SPRING_PROFILES_ACTIVE=prod" --restart unless-stopped <image>:$1

run with the tag for example 'spring-boot-thymeleaf-start.sh 0.0.1-120'

About

SpringBoot Thymeleaf Bootstrap Based Front End UI Template

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published