Hi everyone, I’m new to EHRbase and have been working on setting up version 0.16.5
on my local environment using Docker. I’ve successfully set up the EHRbase and PostgreSQL services using docker-compose
, with the necessary environment variables for database connection and Admin API configuration. However, I’m encountering issues with the Admin API, error when trying to connect. Despite ensuring that the credentials match in both services and that the database is functioning correctly, I can’t get the Admin API to work as expected. I’ve followed the documentation closely but haven’t had any success. Could anyone guide me on the correct setup process or suggest what I might be missing? Your help would be greatly appreciated. Thanks in advance!services:
ehrbase:
image: ehrbase/ehrbase:0.16.5
environment:
SPRING_DATASOURCE_URL: “jdbc:postgresql://db:5432/ehrbase”
SPRING_DATASOURCE_USERNAME: ehrbase
SPRING_DATASOURCE_PASSWORD: ehrbase
SERVER_AQLCONFIG_USEJSQUERY: “false”
EHRBASE_WEBSERVICES_ADMIN_ENABLED: “true”
depends_on:
- db
ports:
- “8080:8080”
db:
image: postgres
volumes:
- db-data:/var/lib/postgresql/data
environment:
POSTGRES_USER: ehrbase
POSTGRES_PASSWORD: ehrbase
POSTGRES_DB: ehrbase
volumes:
db-data: