Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SPRING_JPA_PROPERTIES_HIBERNATE_DIALECT to docker-compose.yml #765

Open
Robinyo opened this issue Dec 9, 2024 · 2 comments
Open

Add SPRING_JPA_PROPERTIES_HIBERNATE_DIALECT to docker-compose.yml #765

Robinyo opened this issue Dec 9, 2024 · 2 comments

Comments

@Robinyo
Copy link

Robinyo commented Dec 9, 2024

Describe the bug
SPRING_JPA_PROPERTIES_HIBERNATE_DIALECT not set in docker-compose.yml

To Reproduce
Steps to reproduce the behaviour:

docker compose up

Expected behaviour
Services startup without issue.

For example:

services:
  hapi-fhir-jpaserver:
    build: .
    container_name: hapi-fhir-jpaserver
    restart: on-failure
    environment:
      SPRING_DATASOURCE_URL: "jdbc:postgresql://hapi-fhir-postgres:5432/hapi"
      SPRING_DATASOURCE_USERNAME: "admin"
      SPRING_DATASOURCE_PASSWORD: "admin"
      SPRING_DATASOURCE_DRIVERCLASSNAME: "org.postgresql.Driver"
      SPRING_JPA_PROPERTIES_HIBERNATE_DIALECT: "ca.uhn.fhir.jpa.model.dialect.HapiFhirPostgresDialect"
    ports:
      - "8080:8080"
  hapi-fhir-postgres:
    image: postgres:15-alpine
    container_name: hapi-fhir-postgres
    restart: always
    environment:
      POSTGRES_DB: "hapi"
      POSTGRES_USER: "admin"
      POSTGRES_PASSWORD: "admin"
    volumes:
      - hapi-fhir-postgres:/var/lib/postgresql/data
volumes:
  hapi-fhir-postgres:

Environment (please complete the following information):
HAPI FHIR Version: HAPI FHIR 7.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)
OS: MacOS Sequoia 15.1.1 (Docker Desktop v.4.36.0)
Browser: Chrome

@afifurrohman-id
Copy link

nah, this where: ERROR: relation "hfj_search" does not exist comes in.

@afifurrohman-id
Copy link

The current configuration option will result in confusion, some are can configure using env in UPPERCASE like: SPRING_DATASOURCE_URL, some are not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants