Creating a postgres database for a springboot app within docker-compose.yml file
I have a springboot application that conncects to a postgres database that i want to be dockerised. The below is my docker-compose.yml file. version: "3.1" services: db-minot-postgres: image: "postgres:latest" environment: POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres POSTGRES_DB: minot ports: - "5432:5432" volumes:…