Skip to content

Instantly share code, notes, and snippets.

@citizenrich
Last active October 13, 2021 17:45
Show Gist options
  • Save citizenrich/31846bce3a848bd487d41e0f0e11b233 to your computer and use it in GitHub Desktop.
Save citizenrich/31846bce3a848bd487d41e0f0e11b233 to your computer and use it in GitHub Desktop.
HAPI with Posgres
version: '3'
services:
fhir:
container_name: fhir
image: hapiproject/hapi:latest
ports:
- "8080:8080"
environment:
profiles.active: r4
spring.datasource.url: 'jdbc:postgresql://db:5432/hapi'
spring.datasource.username: admin
spring.datasource.password: admin
spring.datasource.driverClassName: org.postgresql.Driver
depends_on:
- db
db:
image: postgres
restart: always
environment:
POSTGRES_PASSWORD: admin
POSTGRES_USER: admin
POSTGRES_DB: hapi
# not needed for networking between containers but here for troubleshooting
ports:
- "5432:5432"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment