CoderVlogger

step by step tutorials on how to design, build and deploy apps

Member-only story

Postgres DB for Spring Boot project (Docker, Java) — Video Tutorial

--

Postgres DB Docker Compose configuration for a Spring Boot project.

Docker Compose for Postgres DB

Docker Compose configuration (`/docker-compose.yaml`):

services:
postgres:
image: 'postgres:latest'
environment:
- 'POSTGRES_DB=nest'
- 'POSTGRES_USER=nest-server'
- 'POSTGRES_PASSWORD=secret'
ports:
- '5432:5432'

Spring Boot Application Configuration

Application configuration (`src/main/resources/application.yaml`):

spring:
datasource:
url: jdbc:postgresql://localhost:5432/nest
username: nest-server
password: secret
driver-class-name: org.postgresql.Driver

Initially posted via CoderVlogger.com.

--

--

CoderVlogger
CoderVlogger

Published in CoderVlogger

step by step tutorials on how to design, build and deploy apps

Kanan Rahimov
Kanan Rahimov

No responses yet