-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-run-fhir-server.ps1
More file actions
23 lines (21 loc) · 953 Bytes
/
Copy pathdocker-run-fhir-server.ps1
File metadata and controls
23 lines (21 loc) · 953 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Runs the FHIR server configured to connect to Postgres DB
#
# Prerequisite: Image built with `postgres/docker-build-fhir-server.ps1`
docker container run `
<# remove container after exiting (a best practice. data is not lost as it's stored in the Volume.) #> `
--rm `
<# forward signals #> `
-it `
<# arbitrary name for this container #> `
--name ProofOfConceptLfhFhirServerConfiguredForPostgres `
<# make port accessible from host/laptop #> `
-p 9443:9443 `
<# network, same as Postgres server so they can communicate #> `
--network fhir-server-network `
<# allow connections from container to host/laptop #> `
--add-host host.docker.internal:host-gateway `
<# specify the image name defiend in the build script #> `
proof-of-concept-lfh-fhir-server-configured-for-postgres `
<# forward any arguments of this PowerShell script into the container process #> `
$args
Exit $LASTEXITCODE