yours-truly-phil / SOULHub

Serves SOUL (Sound Language) Patches
MIT License
7 stars 0 forks source link

use spring maven plugin: build-image for docker image #17

Closed yours-truly-phil closed 4 years ago

yours-truly-phil commented 4 years ago

build-image and also build layered jar or pretty much apply most of the stuff that's about deploying / building to docker presented here: Whats New in Spring Boot 2.3

yours-truly-phil commented 4 years ago

for production currently

> ./mvnw spring-boot:build-image -Pproduction

and then

> docker-compose up --build

which runs two containers (postgresql and soulswap app) and connects the soulswap app with the database to exchange data.

Cleaning up the hardcoded static paths in the Docker and docker-compose files and application.yml is not part of this issue, since it's not part of the first milestone.