25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
1.8KB

  1. # Foundry Knowledge Engine (FKE) infrastructure.
  2. # Start with: pwsh -File scripts/Start-Foundry.ps1 (or: docker compose up -d)
  3. name: foundry
  4. services:
  5. postgres:
  6. image: pgvector/pgvector:pg16
  7. container_name: foundry-postgres
  8. restart: unless-stopped
  9. environment:
  10. POSTGRES_DB: foundry
  11. POSTGRES_USER: foundry
  12. POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?Run scripts/Initialize-Foundry.ps1 to create .env}
  13. ports:
  14. - "127.0.0.1:5433:5432"
  15. volumes:
  16. - postgres_data:/var/lib/postgresql/data
  17. healthcheck:
  18. test: ["CMD-SHELL", "pg_isready -U foundry -d foundry"]
  19. interval: 10s
  20. timeout: 5s
  21. retries: 5
  22. # Optional. The module uses an Ollama already running on the host (http://localhost:11434)
  23. # by default. Use this container only if you have none:
  24. # docker compose --profile ollama-container up -d
  25. # $env:FOUNDRY_OLLAMA_URL = 'http://localhost:11435'
  26. ollama:
  27. image: ollama/ollama
  28. container_name: foundry-ollama
  29. profiles: ["ollama-container"]
  30. restart: unless-stopped
  31. ports:
  32. - "127.0.0.1:11435:11434"
  33. volumes:
  34. - ollama_data:/root/.ollama
  35. # Optional database browser for people (agents use the Foundry.Knowledge module, never this).
  36. # docker compose --profile viewer up -d adminer then open http://localhost:8080
  37. # Log in: System PostgreSQL, Server postgres, Username foundry, Password from .env, Database foundry
  38. # Look in schema "knowledge". Browse only: edits here bypass the module's rules.
  39. adminer:
  40. image: adminer
  41. container_name: foundry-adminer
  42. profiles: ["viewer"]
  43. restart: unless-stopped
  44. environment:
  45. ADMINER_DEFAULT_SERVER: postgres
  46. ports:
  47. - "127.0.0.1:8080:8080"
  48. depends_on:
  49. - postgres
  50. volumes:
  51. postgres_data:
  52. ollama_data:

Powered by TurnKey Linux.