|
- # Foundry Knowledge Engine (FKE) infrastructure.
- # Start with: pwsh -File scripts/Start-Foundry.ps1 (or: docker compose up -d)
- name: foundry
-
- services:
- postgres:
- image: pgvector/pgvector:pg16
- container_name: foundry-postgres
- restart: unless-stopped
- environment:
- POSTGRES_DB: foundry
- POSTGRES_USER: foundry
- POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?Run scripts/Initialize-Foundry.ps1 to create .env}
- ports:
- - "127.0.0.1:5433:5432"
- volumes:
- - postgres_data:/var/lib/postgresql/data
- healthcheck:
- test: ["CMD-SHELL", "pg_isready -U foundry -d foundry"]
- interval: 10s
- timeout: 5s
- retries: 5
-
- # Optional. The module uses an Ollama already running on the host (http://localhost:11434)
- # by default. Use this container only if you have none:
- # docker compose --profile ollama-container up -d
- # $env:FOUNDRY_OLLAMA_URL = 'http://localhost:11435'
- ollama:
- image: ollama/ollama
- container_name: foundry-ollama
- profiles: ["ollama-container"]
- restart: unless-stopped
- ports:
- - "127.0.0.1:11435:11434"
- volumes:
- - ollama_data:/root/.ollama
-
- # Optional database browser for people (agents use the Foundry.Knowledge module, never this).
- # docker compose --profile viewer up -d adminer then open http://localhost:8080
- # Log in: System PostgreSQL, Server postgres, Username foundry, Password from .env, Database foundry
- # Look in schema "knowledge". Browse only: edits here bypass the module's rules.
- adminer:
- image: adminer
- container_name: foundry-adminer
- profiles: ["viewer"]
- restart: unless-stopped
- environment:
- ADMINER_DEFAULT_SERVER: postgres
- ports:
- - "127.0.0.1:8080:8080"
- depends_on:
- - postgres
-
- volumes:
- postgres_data:
- ollama_data:
|