Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

41 рядки
1.2KB

  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. volumes:
  36. postgres_data:
  37. ollama_data:

Powered by TurnKey Linux.