Skip to main content

Create config.yaml

Couchbase Server

Prerequisites

Couchbase FHIR CE requires a running Couchbase Server instance. You can use:

  • Couchbase Server (self-hosted)
  • Couchbase Capella (cloud service)
  • Local Couchbase instance for development

Configuration

Create a config.yaml file with your Couchbase connection and FHIR server settings:

config.yaml - Complete Template with example values
connection:
## connectionString: "localhost"
## connectionString: "ec2-174-174-64-174.compute-1.amazonaws.com"
## connectionString: "couchbases://cb.abcdxyz.cloud.couchbase.com"
connectionString: "host.docker.internal"
username: "Administrator"
password: "password123"
serverType: "Server"
sslEnabled: false

couchbase:
sdk:
transaction-durability: NONE
max-http-connections: 128
num-kv-connections: 8
query-timeout-seconds: 30
search-timeout-seconds: 30
connect-timeout-seconds: 10
disconnect-timeout-seconds: 10
transaction-timeout-seconds: 30

app:
autoConnect: true

logging:
levels:
com.couchbase.admin: ERROR
com.couchbase.fhir: ERROR
com.couchbase.common: ERROR
com.couchbase.admin.config.service.ConfigurationStartupService: INFO
# To silence a noisy lib:
# org.springframework.web: ERROR
Yaml Indents

When copying and pasting the above config, after pasting, please make sure that the indents are preserved. Yaml files need to be indented properly, otherwise, they will not load.

Configuration Sections Explained

Connection Configuration:

  • connectionString: Couchbase server endpoint
    • localhost - Local Couchbase installation
    • host.docker.internal - Docker Desktop for Mac/Windows
    • ec2-xxx.compute-1.amazonaws.com - AWS EC2 instance
    • couchbases://cb.xxx.cloud.couchbase.com - Capella (SSL)
  • username/password: Database credentials
  • serverType: "Server" or "Capella"
  • sslEnabled: SSL/TLS connection (true for Capella)

Environment-Specific Examples

Local Docker/Server Setup
connection:
connectionString: "host.docker.internal" # Docker Desktop
# connectionString: "localhost" # Local install
username: "Administrator"
password: "password123"
serverType: "Server"
sslEnabled: false