version: '3'

networks:
  pharmaceutical_research: #because it helps to have a way to link specifically to this. 

services:
  aact_db:
    image: postgres:14-alpine
    networks:
      - pharmaceutical_research
    container_name: DrugCentral
    #restart: always #restart after crashes
    environment:
      POSTGRES_PASSWORD: root
    ports:
      - "54320:5432" #host:container
    volumes: #host:container is the format.
      # this is persistant storage for the database  
      - ./db_store/:/var/lib/postgresql/
      # this is the folder containing entrypoint info.
      - ./docker-entrypoint-initdb.d/:/docker-entrypoint-initdb.d/


