25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

59 satır
2.3KB

  1. services:
  2. axonasp:
  3. # Pinned (AxonASP v2.3.42, tested with tests/*.sh). ":latest" changed behaviour under us once
  4. # (ChrW above U+FFFF started to fail); bump the digest deliberately and rerun the suites.
  5. image: ghcr.io/guimaraeslucas/axonasp@sha256:39f582e2fcdb067d0141f94896e30bbe414e6c79db274077c653b543d519a741
  6. container_name: axonasp
  7. ports:
  8. - "8801:8801"
  9. environment:
  10. # The whole repo is mounted at /opt/axonasp/site so ../core, ../app and ../db
  11. # stay reachable from public/. web.config points SQLite at
  12. # /opt/axonasp/site/db/app.sqlite. The generators (scripts/gen.cmd) and the
  13. # migrator (scripts/migrate.cmd) also expect this layout.
  14. SERVER_WEB_ROOT: /opt/axonasp/site/public
  15. # GET /api/v1/metrics is enabled when this is set (16+ characters); put it in a git-ignored .env file
  16. AMK_METRICS_TOKEN: ${AMK_METRICS_TOKEN:-}
  17. volumes:
  18. - .:/opt/axonasp/site
  19. restart: unless-stopped
  20. # Background indexing: every 30 s, embeds memories/chunks still pending (writes only index a small batch
  21. # after commit) and retries failed ones (up to 5 attempts; scripts\embed.cmd run resets them).
  22. # Same image and mount as axonasp; the image entrypoint drops to the axonasp user.
  23. embed-worker:
  24. image: ghcr.io/guimaraeslucas/axonasp@sha256:39f582e2fcdb067d0141f94896e30bbe414e6c79db274077c653b543d519a741
  25. container_name: axonasp-embed-worker
  26. environment:
  27. SERVER_WEB_ROOT: /opt/axonasp/site
  28. EMBED_ACTION: worker
  29. command: ["/bin/sh", "-c", "while true; do ./axonasp-cli -r /opt/axonasp/site/scripts/embed.asp; sleep 30; done"]
  30. volumes:
  31. - .:/opt/axonasp/site
  32. depends_on:
  33. - ollama
  34. - qdrant
  35. restart: unless-stopped
  36. # Embedding provider (semantic retrieval). Reached from axonasp as http://ollama:11434.
  37. # Pull the model once: docker exec ollama ollama pull nomic-embed-text
  38. ollama:
  39. image: ollama/ollama:0.13.0
  40. container_name: ollama
  41. volumes:
  42. - ollama-models:/root/.ollama
  43. restart: unless-stopped
  44. # Vector index (derived data; SQLite stays the source of truth and can rebuild it).
  45. # Reached from axonasp as http://qdrant:6333.
  46. qdrant:
  47. image: qdrant/qdrant:v1.16.0
  48. container_name: qdrant
  49. volumes:
  50. - qdrant-data:/qdrant/storage
  51. restart: unless-stopped
  52. volumes:
  53. ollama-models:
  54. qdrant-data:

Powered by TurnKey Linux.