Postgres DB for Spring Boot project (Docker, Java)

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

Subscribe and Follow

* Subscribe to CoderVlogger.com and consider becoming a member.
* Check my Twitter for more up-to-date information.