Note: this code directory builds on top of the ../fhir-server/ directory to run with Postgres as the FHIR database.
One time only, if you haven't already, create the Docker network shared by the FHIR server and Postgres DB
[fhir-server/docker-network-create.ps1](../fhir-server/docker-network-create.ps1)Run standalone Postgres server and then initialize the database for use by the FHIR server (create FHIR tables)
postgres/docker-run-postgres.ps1
postgres/init-schema.ps1
Run the FHIR server configured to use the Postgres DB:
postgres/docker-run-fhir-server.ps1
Hit the health check endpoint to test the database.
Open the Postgres CLI:
postgres/docker-run-postgres-cli.ps1
In the Postgres CLI, enter these commands:
-- Set default schema to fhirdata
SET search_path TO fhirdata;
-- Show everything
\d