Answers for "postgres and docker in docker compose yml"

9

postgres docker compose

version: '3'
services:
  postgres-service:
    image: postgres:latest
    container_name: postgres-container
    ports:
      - 55432:5432/tcp
    environment:
      POSTGRES_DB: pg_db
      POSTGRES_PASSWORD: appdbpassword
    volumes:
      - /var/lib/postgres
      - ./dbscripts/postgres:/docker-entrypoint-initdb.d
Posted by: Guest on August-05-2020

Code answers related to "postgres and docker in docker compose yml"

Browse Popular Code Answers by Language