|
- services:
- axonasp:
- # Pinned (AxonASP v2.3.42, tested with tests/*.sh). ":latest" changed behaviour under us once
- # (ChrW above U+FFFF started to fail); bump the digest deliberately and rerun the suites.
- image: ghcr.io/guimaraeslucas/axonasp@sha256:39f582e2fcdb067d0141f94896e30bbe414e6c79db274077c653b543d519a741
- container_name: axonasp
- ports:
- - "8801:8801"
- environment:
- # The whole repo is mounted at /opt/axonasp/site so ../core, ../app and ../db
- # stay reachable from public/. web.config points SQLite at
- # /opt/axonasp/site/db/app.sqlite. The generators (scripts/gen.cmd) and the
- # migrator (scripts/migrate.cmd) also expect this layout.
- SERVER_WEB_ROOT: /opt/axonasp/site/public
- # GET /api/v1/metrics is enabled when this is set (16+ characters); put it in a git-ignored .env file
- AMK_METRICS_TOKEN: ${AMK_METRICS_TOKEN:-}
- volumes:
- - .:/opt/axonasp/site
- restart: unless-stopped
-
- # Background indexing: every 30 s, embeds memories/chunks still pending (writes only index a small batch
- # after commit) and retries failed ones (up to 5 attempts; scripts\embed.cmd run resets them).
- # Same image and mount as axonasp; the image entrypoint drops to the axonasp user.
- embed-worker:
- image: ghcr.io/guimaraeslucas/axonasp@sha256:39f582e2fcdb067d0141f94896e30bbe414e6c79db274077c653b543d519a741
- container_name: axonasp-embed-worker
- environment:
- SERVER_WEB_ROOT: /opt/axonasp/site
- EMBED_ACTION: worker
- command: ["/bin/sh", "-c", "while true; do ./axonasp-cli -r /opt/axonasp/site/scripts/embed.asp; sleep 30; done"]
- volumes:
- - .:/opt/axonasp/site
- depends_on:
- - ollama
- - qdrant
- restart: unless-stopped
-
- # Embedding provider (semantic retrieval). Reached from axonasp as http://ollama:11434.
- # Pull the model once: docker exec ollama ollama pull nomic-embed-text
- ollama:
- image: ollama/ollama:0.13.0
- container_name: ollama
- volumes:
- - ollama-models:/root/.ollama
- restart: unless-stopped
-
- # Vector index (derived data; SQLite stays the source of truth and can rebuild it).
- # Reached from axonasp as http://qdrant:6333.
- qdrant:
- image: qdrant/qdrant:v1.16.0
- container_name: qdrant
- volumes:
- - qdrant-data:/qdrant/storage
- restart: unless-stopped
-
- volumes:
- ollama-models:
- qdrant-data:
|