Example of deployment three-component app with docker-compose: Spring Boot + JQuery + PostgreSQL. Place jar-file into services/app. https://sysout.ru/spring-boot-postgresql-js-v-dosker/