Skip to content

Services and ports

"Internal" means the port is reachable only on the Compose network (my-private-ntwk); "host" ports are published on your machine.

Application services

Service Image Port What it does
gateway nginx:1.31.3-trixie host 8081 (local), 127.0.0.1:8080 (server) Single entry point. Serves /images/ and /branding/ itself, proxies everything else; see Gateway routing
edge nginx:1.31.3-trixie host network :80 (server only) Receives traffic from the hosting provider's HTTPS proxy, trusts X-Forwarded-For only from that provider's range, forwards to the gateway
frontend slawekradzyminski/frontend internal 80 React single-page app (shop, admin, warehouse, LLM, traffic monitor) served by nginx
backend slawekradzyminski/backend-rs internal 4001; gRPC 9091 on host loopback when enabled Rust (axum, async-graphql, tonic). Users and JWT issuance, products, inventory, cart, coupons, gift cards, loyalty, VAT, currencies, orders (with stock reservations that expire), reviews, wishlist, account emails, system prompts, GraphQL, gRPC, traffic monitor, the event feed
warehouse-service slawekradzyminski/warehouse-service-rs internal 4003 Rust (axum). Warehouse locations and split shipments (one parcel per location, 1.5.0), shipments (pick, pack, ship, deliver), simulated carrier tracking, returns (RMA), suppliers, purchase orders, reorder suggestions; cancels shipments from the backend's event feed; owns the stock ledger from 1.6.0 (the backend calls it for stock commands and keeps a projection)
payment-service slawekradzyminski/payment-service-rs internal 4004 Rust (axum). Fake card provider: test cards, 3-D Secure, asynchronous settlement, signed result notifications, card refunds read from the backend's event feed
notification-service slawekradzyminski/notification-service-rs internal 4005 Rust (axum). User webhooks and inboxes, commerce emails (payment, shipping, loyalty, gift card) built from the backend's event feed; JMS to the email queue (full, stable server) or a local outbox (lightweight, sandbox)
delivery-service slawekradzyminski/delivery-service-rs internal 4006 Rust (axum). Last-mile courier: books a delivery for every paid order from the commerce events, moves it with a simulated courier, public tracking by code; serves the tracking micro-frontend (web components) at /mfe/delivery/remote.js, which the frontend mounts on /orders/:id/delivery and /deliveries. See Courier deliveries
llm-service slawekradzyminski/llm-service-rs internal 4007 Rust (axum). The four Ollama endpoints (/api/v1/ollama/generate, /chat, /chat/tools, /chat/tools/definitions), split out of the backend; no database, it reads users, prompts and products through the backend's internal API with its own token. See LLM integration
docs built locally from docs-site/ internal 80 This wiki, served at /docs/ through the gateway
consumer slawekradzyminski/consumer-rs host 4002 (full), internal (server) JMS email consumer: reads the email queue and delivers the already rendered email over SMTP

Infrastructure services

Service Image Port Profiles What it does
postgres postgres:19.0-trixie host 5432 (full), 127.0.0.1:15432 (lightweight), internal (server) all Database testdb; schemas public (backend), warehouse, payment, notification, delivery
postgres-roles postgres:19.0-trixie — all One-shot: creates or updates the warehouse, payment, notification and delivery roles before those services start (postgres/service-roles.sh)
db-tester-role postgres:19.0-trixie — lightweight, full One-shot: the read-only tester login (member of pg_read_all_data, read-only transactions) for pgweb and database clients (postgres/tester-role.sh)
pgweb sosedoff/pgweb:0.17.0 gateway /db/ lightweight, full Read-only database UI for manual testers, connected as tester; never deployed
activemq apache/artemis:2.55.0 host 61616, 8161, 5672 (full), internal (server) full, server Message broker for outgoing emails only (queue email) (awesome.commerce.events, on the server also aitesters.commerce.events)
mailpit axllent/mailpit:v1.30.0 host 8025 UI, 1025 SMTP (full); 127.0.0.1:8025 (server) full, server Fake SMTP inbox
ollama-mock slawekradzyminski/ollama-mock-rs host 11434 (lightweight), internal (server) lightweight, server, model-mock override Deterministic Ollama-compatible LLM mock
ollama-dmr-adapter built locally internal 11434 full Adapter in front of Docker Model Runner (the real local model)

The aitesters sandbox (server profile)

The server runs a second, fully separate copy of the application for aitesters.byst.re: aitesters-backend, aitesters-frontend, aitesters-warehouse-service, aitesters-payment-service, aitesters-notification-service, aitesters-delivery-service, aitesters-llm-service and aitesters-postgres (with its own aitesters-postgres-roles one-shot). It has its own signing key, service tokens, webhook secret and database, so a token from one site never works on the other. Only activemq (one address per site), ollama-mock, mailpit, docs, the gateway and the edge are shared. In all, production runs 23 long-running containers and the two one-shot *-postgres-roles services. A systemd timer recreates the sandbox from a fresh database volume every night.

Memory limits on the server

The VPS has about 4.25 GiB of RAM and no swap. Limits are safety ceilings and are deliberately overcommitted (see Ansible: memory budget).

Service mem_limit Heap / notes
backend 256m Rust (backend-rs)
aitesters-backend 256m Rust (backend-rs)
warehouse-service, aitesters-warehouse-service 160m each Rust, about 7–10 MiB under e2e load
payment-service, aitesters-payment-service 160m each Rust, about 4–14 MiB under e2e load
notification-service, aitesters-notification-service 160m each Rust, about 4–12 MiB under e2e load
delivery-service, aitesters-delivery-service 64m each Rust, about 10 MiB
llm-service, aitesters-llm-service 64m each Rust, a few MiB
consumer 64m Rust, about 3 MiB
postgres / aitesters-postgres 512m / 160m
activemq 512m JVM, -Xmx192M
ollama-mock 64m Rust, about 2–6 MiB
gateway / edge 128m each
frontend / aitesters-frontend 64m each
docs 32m nginx, one worker
mailpit 64m (the metrics stack left production in December 2026)