Skip to content

Angular 8 app with Spring Boot 2 backend and PostgreSQL built & deployed with Docker

Notifications You must be signed in to change notification settings

seblaporte/SpringBoot2-Angular8-PostgreSQL-Docker

Repository files navigation

SpringBoot2-Angular8-PostgreSQL-Docker

Angular 8 app with Spring Boot 2 backend and PostgreSQL database built and deployed with Docker.

illustration

TL;DR

  1. Run with docker-compose up -d

  2. Go to http://demo-app.127.0.0.1.nip.io:8080

Demo : Build and deploy backend with Docker only

1) Build backend

docker build -t springboot2-app springboot2-app/

2) Start database

docker run --name database --rm \
-e POSTGRES_USER=springboot \
-e POSTGRES_PASSWORD=changeme \
postgres:10

3) Get database IP address

docker inspect database

Note
Find information under Network / bridge / IPAddress

4) Start backend

docker run --name backend --rm \
-p 8090:8080 \
-e DATABASE_HOSTNAME=172.17.0.2 \
-e DATABASE_PORT=5432 \
-e DATABASE_USERNAME=springboot \
-e DATABASE_PASSWORD=changeme \
springboot2-app

5) Go to SwaggerUI to check

About

Angular 8 app with Spring Boot 2 backend and PostgreSQL built & deployed with Docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published