Skip to content

Compose profiles

Each main Compose file has its own fixed project name, so switching profiles does not produce orphan warnings. Lightweight and full still publish overlapping host ports (8081, 11434), so stop one before starting the other.

Profile File Project Use it for
lightweight lightweight-docker-compose.yml awesome-light Everyday local work and classes
full docker-compose.yml awesome-full-native Everything local: ActiveMQ, email delivery, a real LLM
server docker-compose.server.yml awesome-server Production on the VPS (deployed by Ansible)
model-mock docker-compose.yml + docker-compose.model-mock.yml awesome-full-native Full profile with ollama-mock instead of Docker Model Runner (CI)
grpc base file + docker-compose.grpc.yml base project Publishes the backend's native gRPC listener on 127.0.0.1:9091
chaos base file + docker-compose.chaos.yml base project Fault-injection lab: Toxiproxy between the services, the backend and PostgreSQL (scripts/chaos)
tracing base file + docker-compose.tracing.yml base project Jaeger with OTLP export from the backend, warehouse-, payment-, notification- and llm-service (Tracing a request)
compatibility docker-compose.compatibility.yml its own Runs the ai-testers-api course suite against two disposable backends on 127.0.0.1:14001 / 14002, each with its warehouse-service and llm-service behind a pass-through router
docs-rag base file + docker-compose.rag.yml base project Opt-in, local-only docs assistant (docs-rag-rs 0.2.3, your own Anthropic API key); never deployed

What differs between the main profiles

lightweight full server
Backend profile (SPRING_PROFILES_ACTIVE) local (demo seed, emails to the in-memory local outbox) docker,demo (demo seed, emails over JMS) docker,server + graphql,grpc (no demo data; bootstrap admin and catalog)
warehouse-, payment-, notification-service profile docker,demo docker,demo docker
delivery-service courier step 15 s 15 s 1 min
PostgreSQL tmpfs, 384 MiB (data and WAL count against it), data lost on recreate; 127.0.0.1:15432 and pgweb at /db/ (read-only tester) named volume postgres19-data, host port 5432; pgweb at /db/ named volume, Vault password, nightly encrypted backups
Commerce events (warehouse-, payment-, notification-, delivery-service) HTTP event feed HTTP event feed HTTP event feed
Emails local outboxes: account emails GET /api/v1/local/email/outbox (backend), commerce emails GET /api/v1/local/notifications/outbox (notification-service) ActiveMQ → consumer → Mailpit (http://localhost:8025), from the backend and notification-service stable: ActiveMQ → consumer → Mailpit (private); aitesters: both local outboxes, key-protected
SSO no (removed in backend 3.18.0) no (removed in backend 3.18.0) no (removed in backend 3.18.0)
LLM (behind llm-service) ollama-mock on 11434 Docker Model Runner through ollama-dmr-adapter ollama-mock (internal)
Monitoring none none host watchdog (Telegram) and Waitcher external checks and heartbeat; no metrics stack
Rate limiting off off on: raised IP-keyed capacities for parallel course suites, strict per-account MFA and password-forgot limits
Signing key ephemeral per backend start ephemeral per backend start JWT_SIGNING_KEY from Ansible Vault
Docs wiki /docs/ /docs/ /docs/ on both hosts

Ephemeral signing key

Without JWT_SIGNING_KEY the backend generates a new RSA key at every start. Access tokens issued before a backend restart stop validating; the frontend recovers with its refresh token.

Starting a profile

docker compose -f lightweight-docker-compose.yml up -d
docker compose up -d
# or, with readiness checks and cleanup of obsolete services:
./run-docker-compose.sh
docker compose -f docker-compose.yml -f docker-compose.model-mock.yml up -d
docker compose -f lightweight-docker-compose.yml -f docker-compose.grpc.yml up -d
make ansible-deploy   # never by hand on the VPS

See Running locally for URLs and demo users.