Files
cmdb-insight/docs/DOCKER-COMPOSE-WARNINGS.md
Bert Hausmans 57e4adc69c Remove JIRA_SCHEMA_ID from entire application
- Remove JIRA_SCHEMA_ID from all documentation, config files, and scripts
- Update generate-schema.ts to always auto-discover schemas dynamically
- Runtime application already discovers schemas via /objectschema/list API
- Build script now automatically selects schema with most objects
- Remove JIRA_SCHEMA_ID from docker-compose.yml, Azure setup scripts, and all docs
- Application is now fully schema-agnostic and discovers schemas automatically
2026-01-22 22:56:29 +01:00

1.7 KiB

Docker Compose Warnings Oplossen

Warnings

Je ziet mogelijk deze warnings:

WARN[0000] The "JIRA_PAT" variable is not set. Defaulting to a blank string.
WARN[0000] The "ANTHROPIC_API_KEY" variable is not set. Defaulting to a blank string.
WARN[0000] docker-compose.yml: the attribute `version` is obsolete

Oplossingen

1. Version Attribute (Opgelost)

De version: '3.8' regel is verwijderd uit docker-compose.yml omdat het obsolete is in nieuwere versies van Docker Compose.

2. Environment Variables

De warnings over ontbrekende environment variables zijn normaal als je geen .env bestand hebt of als deze variabelen niet gezet zijn.

Optie A: Maak een .env bestand (Aanbevolen)

# Kopieer .env.example naar .env
cp .env.example .env

# Edit .env en vul de waarden in
nano .env

Optie B: Zet variabelen in je shell

export JIRA_HOST=https://jira.zuyderland.nl
export JIRA_PAT=your_token
export ANTHROPIC_API_KEY=your_key

docker-compose up

Optie C: Negeer de warnings (OK voor development)

De warnings zijn niet kritisch. De applicatie werkt ook zonder deze variabelen (je kunt dan alleen geen Jira sync doen of AI features gebruiken).

.env Bestand Voorbeeld

# Jira Assets
JIRA_HOST=https://jira.zuyderland.nl
JIRA_PAT=your_personal_access_token

# AI (optioneel)
ANTHROPIC_API_KEY=your_anthropic_key

Verificatie

Na het aanmaken van .env:

# Check of warnings weg zijn
docker-compose config

# Start containers
docker-compose up -d

Notitie

  • .env staat in .gitignore - wordt niet gecommit
  • Gebruik .env.example als template
  • Voor productie: gebruik Azure App Service environment variables of Key Vault