Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

62 řádky
2.6KB

  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. # web.config settings can be overridden per host with APPSETTING_<key>; servers set Production in .env
  18. APPSETTING_Environment: ${APPSETTING_Environment:-Development}
  19. volumes:
  20. - .:/opt/axonasp/site
  21. restart: unless-stopped
  22. # Background indexing: every 30 s, embeds memories/chunks still pending (writes only index a small batch
  23. # after commit) and retries failed ones (up to 5 attempts; scripts\embed.cmd run resets them).
  24. # Same image and mount as axonasp; the image entrypoint drops to the axonasp user.
  25. embed-worker:
  26. image: ghcr.io/guimaraeslucas/axonasp@sha256:39f582e2fcdb067d0141f94896e30bbe414e6c79db274077c653b543d519a741
  27. container_name: axonasp-embed-worker
  28. environment:
  29. SERVER_WEB_ROOT: /opt/axonasp/site
  30. EMBED_ACTION: worker
  31. APPSETTING_Environment: ${APPSETTING_Environment:-Development}
  32. command: ["/bin/sh", "-c", "while true; do ./axonasp-cli -r /opt/axonasp/site/scripts/embed.asp; sleep 30; done"]
  33. volumes:
  34. - .:/opt/axonasp/site
  35. depends_on:
  36. - ollama
  37. - qdrant
  38. restart: unless-stopped
  39. # Embedding provider (semantic retrieval). Reached from axonasp as http://ollama:11434.
  40. # Pull the model once: docker exec ollama ollama pull nomic-embed-text
  41. ollama:
  42. image: ollama/ollama:0.13.0
  43. container_name: ollama
  44. volumes:
  45. - ollama-models:/root/.ollama
  46. restart: unless-stopped
  47. # Vector index (derived data; SQLite stays the source of truth and can rebuild it).
  48. # Reached from axonasp as http://qdrant:6333.
  49. qdrant:
  50. image: qdrant/qdrant:v1.16.0
  51. container_name: qdrant
  52. volumes:
  53. - qdrant-data:/qdrant/storage
  54. restart: unless-stopped
  55. volumes:
  56. ollama-models:
  57. qdrant-data:

Powered by TurnKey Linux.