Skip to content

A sample Spring Boot application that will be used for demos/presentations

Notifications You must be signed in to change notification settings

forestoden/spring-boot-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spring-boot-docker

A sample spring boot application that will be used for demos

Running Docker Commands Individually

docker build -t spring-boot-demo .

docker run spring-boot-demo:0.0.1

docker run --rm -p 8080:8080 --net=host spring-boot-demo:0.0.1

docker run --name=postgres-demo -e POSTGRES_PASSWORD=password -p 5432:5432 -d postgres:10.7

docker exec -it -u postgres postgres-demo psql

CREATE TABLE person(id INTEGER PRIMARY KEY, name VARCHAR (255) NOT NULL);

INSERT INTO person VALUES (1, 'Forest');

INSERT INTO person VALUES (2, 'John');

Docker Compose

docker-compose build

docker-compose up

About

A sample Spring Boot application that will be used for demos/presentations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published