You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 line
2.2KB

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

Powered by TurnKey Linux.