version: '3' volumes: aact_pg_database: #This is to hold the database. networks: pharmaceutical_research: external: true services: aact: build: ./ClinicalTrialHistory #build and use the clinical trial history db. networks: - pharmaceutical_research container_name: aact_db #restart: always #restart after crashes environment: POSTGRES_USER: root POSTGRES_PASSWORD: root POSTGRES_DB: aact_db ports: - "5432:5432" #host:container volumes: #host:container is the format. - aact_pg_database:/var/lib/postgresql/ # this is persistant storage for the database - ./aact_downloads/postgres_data.dmp:/mnt/host_data/postgres_data.dmp