# ──────────────────────────────────────────────────
# EDDI Docker Compose Environment Variables
# Copy this file to .env and customize for your deployment
# ──────────────────────────────────────────────────

# ── EDDI ──
# Version tag for the EDDI Docker image
EDDI_VERSION=latest

# HTTP port (default: 7070)
EDDI_PORT=7070

# HTTPS port (default: 7443)
EDDI_HTTPS_PORT=7443

# Datastore type: mongodb or postgres
EDDI_DATASTORE_TYPE=mongodb

# Secrets Vault master key (REQUIRED for vault features)
# Generate with: openssl rand -base64 32
EDDI_VAULT_MASTER_KEY=

# ── MongoDB ──
# MongoDB root credentials (used for both init and connection)
MONGO_INITDB_ROOT_USERNAME=eddi
MONGO_INITDB_ROOT_PASSWORD=changeme

# MongoDB port (bound to 127.0.0.1 only)
MONGO_PORT=27017

# ── Security ──
# Set to true to allow running without OIDC in production (NOT RECOMMENDED)
# EDDI_SECURITY_ALLOW_UNAUTHENTICATED=false

# ── OIDC / Keycloak ──
# QUARKUS_OIDC_TENANT_ENABLED=true
# QUARKUS_OIDC_AUTH_SERVER_URL=http://keycloak:8080/realms/eddi
# QUARKUS_OIDC_CLIENT_ID=eddi-backend
