Docker Compose¶
PerfShop is shipped as a Docker Compose stack: its services are those of docker-compose.desktop.yml (Docker Desktop) and docker-compose.build.yml (Linux/VPS). They are attached to the perfshop-network bridge network — except two that have no network at all: perfshop-docker-relay, the Docker socket relay, and perfshop-orchestrator-keys, which generates the Squash orchestrator's keys on first start — and organized into logical groups.
This page is the exhaustive inventory of the services: a summary table first, then, group by group, a sub-section for every service that has specifics (critical variables, volumes, dependencies). One single exception, on purpose: the pedagogical games hub, described in its own section without a service name or port. A guard, tools/docs/test/architecture-docker.test.mjs, checks this page against both compose files: services, images, ports and volumes.
Source of truth
The information on this page comes from the docker-compose.desktop.yml (Docker Desktop) and docker-compose.build.yml (Linux/VPS) files, which declare the same list of services. They only differ on a few points: perfshop-jmeter-ui (image built in build.yml; node image and mounted code in desktop.yml), CPU caps specific to desktop.yml and the declaration of the mysql-data volume (see below). Images, ports, volumes, healthchecks and dependencies can all be checked in these files; the ports given here are the defaults, which a .env can change.
Summary table¶
| Group | Service | Image | Host port (default) | Short role |
|---|---|---|---|---|
| Core | perfshop-db |
mysql:8.0 |
19306 | Main database |
| Core | perfshop-app |
built (backend/Dockerfile) |
9080; 9090 on 127.0.0.1 | Spring Boot backend (API; Actuator on 9090) |
| Core | perfshop-frontend |
built (frontend/Dockerfile) |
8090 | React shop + nginx |
| Core | perfshop-monitoring |
built (monitoring/Dockerfile) |
3001 | Real-time Node dashboard |
| Core | perfshop-admin |
built (admin/Dockerfile) |
3004 | Shop administration |
| Core | perfshop-chaos-admin |
built (chaos-admin/Dockerfile) |
3003 | Chaos console |
| Core | perfshop-welcome |
built (welcome/Dockerfile) |
3011; 4040 | Welcome directory page; Pyroscope interface, read-only (4040) |
| Core | perfshop-docs |
built (mkdocs/Dockerfile) |
9087 | MkDocs documentation |
| Observability | prometheus |
prom/prometheus:v3.2.1 |
9092 | Metrics |
| Observability | grafana |
grafana/grafana:12.0.0 |
3002 | Dashboards and exploration |
| Observability | perfshop-grafana-seed |
python:3.11-slim |
— | Grafana init (one-shot) |
| Observability | perfshop-loki |
grafana/loki:3.4.2 |
19100 | Log storage |
| Observability | perfshop-promtail |
grafana/promtail:3.4.2 |
— | Docker log collection → Loki |
| Observability | perfshop-tempo |
grafana/tempo:2.4.2 |
19200; 4317; 4318 | OTLP trace storage |
| Observability | perfshop-pyroscope |
grafana/pyroscope:1.13.0 |
— (Docker network; interface through the welcome page) | Continuous JVM profiling |
| Observability | perfshop-opensearch |
opensearchproject/opensearch:2.13.0 |
9201 | Full-text log indexing |
| Observability | perfshop-opensearch-dashboards |
opensearchproject/opensearch-dashboards:2.13.0 |
5601 | OpenSearch UI |
| Observability | perfshop-vector |
timberio/vector:0.38.0-alpine |
— | Docker log collection → OpenSearch |
| Observability | perfshop-opensearch-seed |
python:3.11-slim |
— | Index templates and dashboards init (one-shot) |
| QA — JMeter | perfshop-jmeter |
justb4/jmeter:5.5 (JMETER_IMAGE) |
— | Permanent JMeter container (idle) |
| QA — JMeter | perfshop-jmeter-ui |
built (jmeter-ui/Dockerfile); Docker Desktop: node:24.15.0-alpine, mounted code |
3005 | JMeter control UI |
| QA — Squash | perfshop-squash-db |
postgres:16 |
5433 | Squash TM database |
| QA — Squash | perfshop-testmgmt |
built (squash-tm/Dockerfile, from squashtest/squash:9.0.0) |
9086 | Squash TM ALM |
| QA — Squash | perfshop-orchestrator-keys |
node:24.15.0-alpine |
— (no network) | Orchestrator keys, on first start (one-shot) |
| QA — Squash | perfshop-orchestrator |
squashtest/squash-orchestrator:4.14.0 |
— | SSH-driven executions |
| QA — Squash | perfshop-squash-seed |
python:3.11-slim |
— | Squash TM project init (one-shot) |
| Class | perfshop-comptes-seed |
node:24.15.0-alpine |
— | Student accounts in PerfShop and Squash TM (one-shot) |
| QA — Test exec | perfshop-selenium |
selenium/standalone-chrome:4.43.0 |
4444; 7900, on 127.0.0.1 by default | Selenium Grid + noVNC |
| QA — Test exec | perfshop-test-runner |
built (test-runner/Dockerfile) |
— | Robot Framework + pytest + SSH |
| QA — SCM | perfshop-forgejo |
codeberg.org/forgejo/forgejo:14 |
3009 | Self-hosted Git |
| QA — SCM | perfshop-forgejo-seed |
python:3.11-slim |
— | Forgejo init: administrator, CI account, repositories (one-shot) |
| QA — Scripts | perfshop-scripts-ui |
built (scripts-ui/Dockerfile) |
3008 | Script editor/launcher |
| QA — Test-AI | perfshop-test-ai |
built (test-ai/Dockerfile) |
3006 | AI-assisted testing workshop |
| QA — Test-AI | perfshop-playwright |
built (test-ai/Dockerfile.playwright), tagged perfshop-playwright:live |
— | Test-AI's Playwright browsers |
| Security | perfshop-docker-relay |
built (docker-relay/Dockerfile) |
— (no network) | Docker socket relay: the only service to mount the daemon socket |
Network and volumes¶
flowchart LR
subgraph net["perfshop-network (bridge)"]
direction LR
core["Core"] ~~~ obs["Observability"] ~~~ qa["QA and class"]
end
isoles["perfshop-docker-relay<br/>perfshop-orchestrator-keys<br/>(no network, no port)"]
Services on the same network reach one another by name; the split between groups is logical, not network-based (see Network and domains).
Named volumes¶
| Volume | Mounted by | Content |
|---|---|---|
prometheus-data |
prometheus |
Time series (7 days or 5 GB) |
grafana-data |
grafana |
Grafana database |
loki-data |
perfshop-loki |
Logs (168 h) |
tempo-data |
perfshop-tempo |
Traces |
pyroscope-data |
perfshop-pyroscope |
Profiles (7 days) |
opensearch-data |
perfshop-opensearch |
Log indexes |
squash-db-data |
perfshop-squash-db |
Squash TM PostgreSQL database |
forgejo-data |
perfshop-forgejo |
Forgejo repositories and SQLite database |
forgejo-token-data |
perfshop-forgejo-seed (writes), perfshop-scripts-ui (reads) |
Token of the Forgejo CI account |
training-secret |
perfshop-app (writes), perfshop-test-runner and perfshop-scripts-ui (read) |
Technical training accounts (PERFSHOP_TRAINING_DIR) |
orchestrator-trust |
perfshop-orchestrator-keys (writes), perfshop-orchestrator (reads) |
The orchestrator's trusted public key |
orchestrator-secret |
perfshop-orchestrator-keys |
The orchestrator's private key and token, never mounted elsewhere |
runner-ssh |
perfshop-test-runner (writes), perfshop-orchestrator (reads) |
SSH key that opens the runner to the orchestrator |
jmeter-ui-sessions |
perfshop-jmeter-ui |
Login sessions |
jmeter-ui-modules |
perfshop-jmeter-ui, under Docker Desktop |
npm dependencies of the mounted code |
scripts-ui-sessions |
perfshop-scripts-ui |
Login sessions |
test-ai-sessions |
perfshop-test-ai |
Login sessions |
test-ai-data |
perfshop-test-ai |
Test-AI data |
playwright-workspace |
perfshop-test-ai, perfshop-playwright |
Shared test workspace |
docker-relay-scripts-ui, docker-relay-jmeter-ui, docker-relay-test-ai, docker-relay-forgejo-seed, docker-relay-monitoring, docker-relay-vector, docker-relay-promtail |
perfshop-docker-relay (writes) and the client of the same name (read-only) |
That client's socket, created by the relay |
The MySQL database lives in the tree's ./mysql-data folder, mounted from the host in both compose files: it is not a named volume, and docker compose down -v does not delete it.
The other host mounts are configuration files, mostly read-only (./prometheus/prometheus.yml, ./grafana/provisioning, ./grafana/dashboards, ./loki/loki-config.yml…), the JMeter and runner working folders (./jmeter/{scenarios,scripts,results,plugins,logs}, ./test-runner/{scripts,logs}), the product images (./frontend/public/images) and ./mkdocs, which the documentation serves.
The daemon socket (/var/run/docker.sock) is a host mount as well: only perfshop-docker-relay mounts it — see Docker socket relay.
Core group¶
perfshop-db — MySQL 8¶
- Official
mysql:8.0image, healthcheckmysqladmin ping(interval 10 s, timeout 5 s, 5 retries) - Variables:
MYSQL_DATABASE=perfshop,MYSQL_USER=perfshop,MYSQL_PASSWORD=${DB_PASSWORD},MYSQL_ROOT_PASSWORD=${DB_ROOT_PASSWORD} - Data in the tree's
./mysql-datafolder, mounted on/var/lib/mysql(host mount, in both compose files) - CPU cap
cpus: ${DB_CPUS:-1.0}(0: no cap, for the Synology NAS whose kernel has no CFS) - JSON-file logging capped at 20 MB × 3 files
perfshop-app — Spring Boot backend¶
This is the most complex service in the stack. See also auth.md, database.md, and the Observability section.
- Image built from
backend/Dockerfile(Maven build, theneclipse-temurin:17-jrewith the OpenTelemetry and Pyroscope agents) - Limits:
mem_limit: 1536m,mem_reservation: 512m,cpus: ${BACKEND_CPUS:-1.0}; JSON logs capped at 50 MB × 3 files - Volumes:
./frontend/public/images/products→/images-data/products(see below) andtraining-secret→/training(technical training accounts) - Ports: 8080 inside the container (REST API), published on the host as 9080 (
BACKEND_HTTP_PORT); 9090 (Actuator management port: metrics, heap dump), published on the machine only (BACKEND_METRICS_BIND,127.0.0.1by default;BACKEND_METRICS_PORT), in both compose files; Prometheus andperfshop-monitoringreach it through the Docker network - Healthcheck: none, handled by ordered dependency
- Dependencies:
perfshop-db(healthy),perfshop-tempo,perfshop-pyroscope
JAVA_OPTS — embedded APM agents¶
The image embeds two Java agents that are activated via the JAVA_OPTS variable:
-Xms256m -Xmx1g -XX:MaxMetaspaceSize=128m
-javaagent:/agents/opentelemetry-javaagent.jar
-Dotel.service.name=perfshop
-Dotel.exporter.otlp.endpoint=http://perfshop-tempo:4317
-Dotel.exporter.otlp.protocol=grpc
-Dotel.traces.exporter=otlp
-Dotel.metrics.exporter=none
-Dotel.logs.exporter=none
-Dotel.instrumentation.http.server.capture-request-headers=Content-Type
-Dotel.instrumentation.jdbc.captured-statements.enabled=true
-Dotel.span.attribute.count.limit=256
-javaagent:/agents/pyroscope.jar
-Dpyroscope.server.address=http://perfshop-pyroscope:4040
-Dpyroscope.application.name=perfshop
-Dpyroscope.format=jfr
-Dpyroscope.profiler.event=itimer
-Dpyroscope.profiler.alloc=512k
-Dpyroscope.profiler.lock=10ms
-Dpyroscope.profiling.interval=20ms
Details:
- OpenTelemetry agent: exports OTLP gRPC traces to Tempo (port 4317), disables metrics and logs export (Prometheus and Loki are the preferred sinks), captures only the
Content-Typeheader on the server side (no authentication header), and captures JDBC statements. Seeobservability/tempo.md. - Pyroscope agent: exports CPU profiles in JFR (Java Flight Recorder) format, with sampling every 20 ms (the agent prints
profilingInterval=PT0.02Sat startup; the-Dpyroscope.profilingIntervalform was ignored), allocation profile every 512 KB and lock profile for contention ≥ 10 ms. Seeobservability/pyroscope.md.
Application environment variables¶
| Variable | Role |
|---|---|
SPRING_DATASOURCE_URL |
jdbc:mysql://perfshop-db:3306/perfshop?useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=UTC |
SPRING_DATASOURCE_USERNAME / _PASSWORD |
Application account perfshop |
PERFSHOP_LANG |
fr or en (selects Flyway migrations and i18n bundles) |
CORS_ALLOWED_ORIGINS |
Composed dynamically from PUBLIC_FRONTEND_URL, PUBLIC_MONITORING_URL, PUBLIC_CHAOS_URL, PUBLIC_ADMIN_URL |
SESSION_COOKIE_SECURE / _SAME_SITE |
Cookie policy (depending on HTTP/HTTPS) |
PERFSHOP_ADMIN_EMAIL / _PASSWORD |
Superadmin bootstrap at first startup |
PERFSHOP_LICENSE_KEY |
License key (takes precedence over the perfshop_license table) |
PUBLIC_GAMES_URL |
External URL of the games hub (used only in the end-of-journey chaining) |
PERFSHOP_TRAINING_DIR |
Folder of the technical training accounts (/training, training-secret volume) |
Product images bind mount¶
The backend can write images uploaded via admin into this folder; the frontend nginx serves them directly from the shared volume.
perfshop-frontend — React shop¶
- Image built from
frontend/Dockerfile: Vite bundle built onnode:20-alpine, served bynginx:alpine - Limits:
mem_limit: 256m,mem_reservation: 64m,cpus: ${FRONTEND_CPUS:-1.0} - Bind mount
./frontend/public/images→/usr/share/nginx/html/images(images shared with the backend) VITE_API_URLandVITE_MONITORING_URLinjected at container startup by theenv-inject.shscript (sedsubstitution of the URLs in the bundled Vite JS files);VITE_LANGwritten into the<html lang>ofindex.htmland read by the application — the bundle code is never rewritten for the language
perfshop-monitoring — Real-time Node dashboard¶
- Image built from
monitoring/Dockerfile(node:24.15.0-alpine; build context: the repository root, to copyshared-node) - Bind mount
./monitoring/public→/app/public(static HTML/CSS/JS) - Named volume
docker-relay-monitoring→/run/docker-relay(read-only): socket of the Docker relay (DOCKER_SOCKET=/run/docker-relay/docker.sock), which grants the service only the list and the CPU/RAM/network statistics of four containers (perfshop-frontend,perfshop-app,perfshop-db,perfshop-monitoring) - Polls
http://perfshop-app:9090/actuator/prometheusevery 2 seconds (POLL_INTERVAL=2000) - Exposes
/metricsin Prometheus format (perfshop-dockerjob on the Prometheus side) - See
observability/dashboard-html.mdfor the details
perfshop-admin and perfshop-chaos-admin¶
These two services are vanilla HTML/CSS/JS bundles served by nginx, with an env-inject-nginx.sh script that substitutes the PUBLIC_* variables in the HTML files at startup. They have no server-side logic — all business logic lives in the Spring Boot backend, which they consume via REST.
- Images built from
admin/Dockerfileandchaos-admin/Dockerfile(nginx:alpine); ports 3004 (ADMIN_HTTP_PORT) and 3003 (CHAOS_HTTP_PORT) perfshop-adminwaits for the backend (depends_on); CPU capcpus: ${ADMIN_CPUS:-1.0}
perfshop-welcome¶
- Image built from
welcome/Dockerfile(nginx:1.27-alpine); ports 3011 (directory) and 4040 (PYROSCOPE_HTTP_PORT: Pyroscope's interface, read-only,welcome/nginx-pyroscope.conf; pushing profiles there is refused, 403) ipordnsmode depending onWELCOME_MODE—autoby default:dnsas soon as onePUBLIC_*_URLis not on the host (http://${HOST_IP}:<port>); the page lists accessible URLs using either the host address or the configured DNS subdomains- Receives all
PUBLIC_*_URLvariables from the.envto generate its directory
perfshop-docs — MkDocs documentation¶
- Image built from
mkdocs/Dockerfile(squidfunk/mkdocs-material:9.6.22); port 9087 (DOCS_HTTP_PORT) to 8000 - Bind mount
./mkdocs→/docs; on every start,mkdocs/entrypoint.shgeneratesmkdocs.ymlfrommkdocs.template.ymlin the language ofPERFSHOP_LANG, then runsmkdocs serve - Limits:
mem_limit: 384m,mem_reservation: 64m - Under Docker Desktop (Windows), a page changed in the tree is only served after a restart of the service: the mount does not pass the change event on to
mkdocs serve - Offline: the diagrams (Mermaid 11.17.2) and the fonts (Inter, JetBrains Mono) are served by this service, from
mkdocs/docs/vendor/(provenance and licenses in theirNOTICE.md); no page calls the Internet - This is the service that serves this very documentation
Observability group¶
See Observability — Overview for a functional analysis. This sub-section only gives the Docker details.
prometheus¶
- Named volume
prometheus-data→/prometheus - Bind mount
./prometheus/prometheus.yml→/etc/prometheus/prometheus.yml - Image
prom/prometheus:v3.2.1; port 9092 (PROMETHEUS_HTTP_PORT) to 9090 - Explicit command with
--storage.tsdb.retention.time=7d,--storage.tsdb.retention.size=5GBand--web.enable-remote-write-receiver(Tempo writes there the metrics it derives from traces) - Details in
observability/prometheus.md
grafana¶
- Pinned version 12.0.0, like every observability image of the stack; port 3002 (
GRAFANA_HTTP_PORT) to 3000 - Key variables:
GF_AUTH_ANONYMOUS_ENABLED=true,GF_AUTH_ANONYMOUS_ORG_ROLE=Viewer,GF_PANELS_DISABLE_SANITIZE_HTML=true,GF_USERS_DEFAULT_LANGUAGE=${PERFSHOP_UI_LOCALE:-en-US} - Bind mounts:
./grafana/provisioning(datasources + dashboards.yml + test-ai.yml) +./grafana/dashboards(shipped dashboards, filed undereleves/andformateurs/) +./test-ai/docker/grafana/dashboards:/etc/grafana/dashboards/test-ai:ro(nested SSOT mount for test-ai, 1 JSON from the sibling package — T1-1 pattern) - Healthcheck
/api/health - Details in
observability/grafana.md
perfshop-grafana-seed¶
- Image
python:3.11-slim, runs/app/seed.py(standard library only: nothing downloaded at startup) restart: "no"(one-shot)depends_on: grafana: condition: service_healthy- Role: sets the folder ACLs (
FormateursAdmin-only,Élèvesread-only,Ateliers élèveswritable by the Editor role), creates the student account, configures the homes; exit code 1 on failure - Details in
observability/grafana.md
perfshop-loki / perfshop-promtail¶
- Loki in single-node mode (
target: all), retention 168 h (7 days), TSDB v13 schema - Promtail collects via Docker SD (Docker API, through the Docker relay), plus two static_configs jobs for
jmeter.logand the Test Runner logs (/rf-logs/*.log) - Promtail mounts: named volume
docker-relay-promtail→/run/docker-relay(RO, socket of the relay),./jmeter/logs(RO),./test-runner/logs(RO) - Details in
observability/loki.md
perfshop-tempo¶
- Pinned version 2.4.2
- 3 exposed ports:
19200(HTTP query),4317(OTLP gRPC),4318(OTLP HTTP) metrics_generatorenabled (service-graphs + span-metrics) with remote_write to Prometheus- Details in
observability/tempo.md
perfshop-pyroscope¶
- Filesystem storage in the
pyroscope-datavolume mounted on/data(7-day retention); push-only: the Java agent sends, Pyroscope scrapes nothing - No published port: the agent and Grafana use the Docker network; students open the UI read-only through the landing page (port 4040,
welcome/nginx-pyroscope.conf) - Details in
observability/pyroscope.md
perfshop-opensearch / _dashboards / _seed / vector¶
A complete OpenSearch stack parallel to Loki:
perfshop-opensearch: 2.13.0, single-node, security plugin disabled, healthcheck/_cluster/health, ulimitsmemlock=-1andnofile=65536perfshop-opensearch-dashboards: 2.13.0, Kibana-compatible UIperfshop-vector: collects Docker logs (Docker API, through the Docker relay: named volumedocker-relay-vector) and pushes them intoperfshop-{service_family}indices after VRL transformperfshop-opensearch-seed: creates the index templates of the spring, nginx, mysql, jmeter, qa, forgejo and observability families and imports theperfshop-all-logs.ndjsondashboard- Details in
observability/opensearch.md
QA group¶
See QA stack — Overview for the full workflow.
perfshop-jmeter — Permanent container¶
- Image
justb4/jmeter:5.5(JMETER_IMAGEcan replace it) - Specific entrypoint:
/bin/sh -c "cp /plugins/*.jar /opt/apache-jmeter-5.5/lib/ext/ 2>/dev/null || true && echo '[JMeter] Plugins installed' && tail -f /dev/null" - The container stays idle (
tail -f /dev/null) waiting for a test run to be launched viadocker exec. The plugins (including the Prometheus listener plugin) are copied once at startup. - Bind mounts:
./jmeter/{scenarios,scripts,results,plugins,logs} - Heap:
HEAP=-Xms256m -Xmx${JMETER_MAX_RAM:-512}m -XX:MaxMetaspaceSize=128m - Details in
qa/jmeter.md
perfshop-jmeter-ui¶
- Two modes, depending on the compose file:
- Linux/VPS (
docker-compose.build.yml): image built fromjmeter-ui/Dockerfile(node:24.15.0-alpine,shared-nodecopied into the image); - Docker Desktop (
docker-compose.desktop.yml):node:24.15.0-alpinebase, source code mounted on/appandshared-nodeon/shared-node:ro, commandsh -c "npm ci --omit=dev && node src/server.js",node_modulesin the named volumejmeter-ui-modules— a code change is live at once
- Linux/VPS (
- Login sessions in the named volume
jmeter-ui-sessions - Named volume
docker-relay-jmeter-ui→/run/docker-relay(read-only): socket of the Docker relay (DOCKER_SOCKET=/run/docker-relay/docker.sock), through which the equivalent ofdocker exec perfshop-jmeter ...that launches the test runs goes; the relay grants that container only - Variables:
JMETER_TARGET_INTERNAL,JMETER_TARGET_EXTERNAL,JMETER_PROMETHEUS_PORT=9270,PROMETHEUS_INTERNAL_URL=http://perfshop-prometheus:9090,JMETER_MAX_RAM(512 by default),GRAFANA_URL - Details in
qa/jmeter.md
perfshop-squash-db / perfshop-testmgmt¶
- PostgreSQL 16 dedicated to Squash TM (deliberately separated from MySQL to respect the official Squash stack)
- Squash TM: image built from
squash-tm/Dockerfile(squashtest/squash:9.0.0); port 9086 (SQUASH_HTTP_PORT) to 8080; the PostgreSQL database is published on 5433 (SQUASH_DB_PORT) - Squash TM uses the
./squash-seed/start-plugins.cfgand./squash-seed/squash.tm.cfg.propertiesbind mounts for its configuration - Critical variable:
SQUASH_JWT_SECRET(base64 secret used to sign the JWT tokens accepted by the orchestrator) - Healthcheck
/squash/isSquashAlive - Details in
qa/squash-tm.md
perfshop-comptes-seed¶
- Image
node:24.15.0-alpine, runs/seed/comptes.mjs(code mounted read-only from./comptes-seed, Node only: no package installed);./classemounted on/classe(listcomptes.csv, passwordsmots-de-passe.csv, neither of them in git) - For each student of the list: a PerfShop account (JMeter and Scripts rights, through the backend's admin API: superadmin and licence required, otherwise 402) and a Squash TM account (Test referee on
PerfShop QA), same identifier, same password; exit codes 0, 1 (an account in error, a tool out of reach), 2 (faulty list, incomplete configuration) - Instructor accounts read from the
.env, with no default value written in the compose file - Replayed alone, without restarting anything, by
./build.sh <target> --comptes[=creer|verifier|retirer|supprimer]— details in Class accounts
perfshop-orchestrator¶
- Official image
squashtest/squash-orchestrator:4.14.0 - Configuration bind mounts (
pools.yaml,sshee.yaml,arranger.yaml,squashtf.yaml) and volumes generated on first start:orchestrator-trust(public key, byperfshop-orchestrator-keys) andrunner-ssh(SSH key, by the runner) - Drives Squash TM via the
SQUASH_TM_URL,SQUASH_TM_USER,SQUASH_TM_PASSWORDvariables - Details in
qa/squash-orchestrator.md
perfshop-orchestrator-keys¶
- Image
node:24.15.0-alpine, runssquash-orchestrator/init-keys.mjs(mounted read-only), then stops (restart: "no") network_mode: none: no network, no port- Generates on first start this installation's key pair: the public key in
orchestrator-trust(mounted read-only by the orchestrator, its only trust authority), the private key and the token to declare in Squash TM inorchestrator-secret(mode 600, never mounted elsewhere); an existing pair is reused perfshop-orchestratorwaits for its successful completion (condition: service_completed_successfully)
perfshop-selenium¶
- Official image
selenium/standalone-chrome:4.43.0 - 2 ports: 4444 (Selenium WebDriver), published on the machine only (
127.0.0.1), and 7900 (noVNC, visual debugging), on127.0.0.1by default:SELENIUM_VNC_BINDopens it to the class (the.env.examplefile does), the desktop can be watched but not driven - Limits:
mem_limit: 4g,cpus: ${SELENIUM_CPUS:-2.0} - Variables:
SE_NODE_MAX_SESSIONS=2,SE_VNC_NO_PASSWORD=1,SE_VNC_VIEW_ONLY=1(view-only desktop),SE_START_XVFB=true; locked-down container (read-only,no-new-privileges, limits) — see Selenium shm_size: 2gb(Chrome needs significant shared memory to avoid crashes)- Details in
qa/selenium.md
perfshop-test-runner¶
- Image built from
test-runner/Dockerfile(python:3.11-slim) on the deploying machine: it comes from no registry - Includes OpenSSH server, Robot Framework 7.0, robotframework-seleniumlibrary 6.3.0, robotframework-requests 0.9.6, robotframework-jsonlibrary 0.5, pytest 8.0.0, selenium 4.18.1, allure-robotframework 2.15.3, squash-tf-services 2.0.0 (versions pinned by
test-runner/requirements.txt) - Bind mounts:
./test-runner/scripts→/scripts,./test-runner/logs→/rf-logs; named volumestraining-secret→/training(read-only) andrunner-ssh→/ssh-keys(the key that opens the runner to the orchestrator) - Variables:
SELENIUM_REMOTE_URL(http://perfshop-selenium:4444/wd/hubby default,RF_RUNNER_SELENIUM_URL),PERFSHOP_FRONTEND_INTERNAL,PERFSHOP_FRONTEND_URL,PUBLIC_API_URL,PERFSHOP_LANG,PERFSHOP_TRAINING_DIR - Details in
qa/test-runner.md
perfshop-forgejo / perfshop-forgejo-seed¶
- Forgejo 14, SQLite database (
/data/gitea/forgejo.db) - Critical variables:
FORGEJO__server__ROOT_URL,FORGEJO__database__DB_TYPE=sqlite3,FORGEJO__security__INSTALL_LOCK=true(GITEA_ADMIN_USERNAME/_PASSWORD/_EMAILare passed too, but Forgejo 14 creates no account from them: the seed creates the administrator) - Healthcheck via
curl http://localhost:3000/api/v1/version - The seed (
python:3.11-slim, standard library, at everyup, exit code 1 on failure) creates the administrator through the Forgejo CLI (Docker API, through the Docker relay: named volumedocker-relay-forgejo-seed,DOCKER_HOST=unix:///run/docker-relay/docker.sock), the CI account and theperfshop-testsandperfshoprepositories, writes the API tokens in/token(named volumeforgejo-token-datashared withperfshop-scripts-ui, reused as long as they are valid) and pushes the scripts oftest-runner/scripts(mounted read-only): added or updated, nothing if identical - Details in
qa/forgejo.md
perfshop-scripts-ui¶
- Image built from
scripts-ui/Dockerfile(node:24.15.0-alpine,shared-nodecopied into the image), in both compose files - Login sessions in the named volume
scripts-ui-sessions;training-secret→/training(read-only) - Named volume
docker-relay-scripts-ui→/run/docker-relay(read-only): socket of the Docker relay (DOCKER_SOCKET=/run/docker-relay/docker.sock), for the equivalent ofdocker exec perfshop-test-runner; the relay grants that container only - Shared volume
./test-runner/logs→/rf-logs(reading RF outputs + writing "persistent runs") - Read-only named volume
forgejo-token-data:/token:ro(reads the Forgejo token generated by the seed) - Variables:
FORGEJO_INTERNAL_URL,FORGEJO_CI_USER,FORGEJO_REPO,FORGEJO_TOKEN_FILE=/token/forgejo_token,TEST_RUNNER_CONTAINER=perfshop-test-runner,SELENIUM_REMOTE_URL - Details in
qa/scripts-ui.md
perfshop-test-ai / perfshop-playwright¶
perfshop-test-ai: image built fromtest-ai/Dockerfile(node:24.15.0-alpine,shared-nodecopied into the image); port 3006 (TEST_AI_PORT); named volumestest-ai-sessions(sessions),test-ai-data(data),playwright-workspace(shared with Playwright) anddocker-relay-test-ai→/run/docker-relay(read-only): socket of the Docker relay, through which Test-AI runs the tests inperfshop-playwright;host.docker.internaldesignates the host (a local language model, such as Ollama); starts after the backend, a healthy Playwright and a healthy relayperfshop-playwright: image built fromtest-ai/Dockerfile.playwright(mcr.microsoft.com/playwright, versionv1.50.0-jammy), taggedperfshop-playwright:live; no published port; virtual displays perTEST_AI_DISPLAY_COUNT(5 by default, as many as simultaneous runs,PLAYWRIGHT_MAX_CONCURRENT), sized byTEST_AI_LIVE_RESOLUTION(1280x800 by default; change either and the image is rebuilt); healthcheck/usr/local/bin/playwright-healthcheck- Details in Test AI — Playwright orchestrator and Test AI — local Ollama mode
Docker socket relay — perfshop-docker-relay¶
- Local build of
./docker-relay(basenode:24.15.0-alpine, no dependency: nonpm install, neither at build nor at startup) - The only service that mounts
/var/run/docker.sock; it also mounts one named volume per client,docker-relay-<client>→/run/docker-relay/<client>, where it creates that client's socket - Clients:
perfshop-scripts-ui,perfshop-jmeter-ui,perfshop-test-ai,perfshop-forgejo-seed,perfshop-monitoring,perfshop-vector,perfshop-promtail— each mounts its volume read-only on/run/docker-relayand gets only the calls its feature needs (tabledocker-relay/src/policy.js); any other call is refused (403) and logged network_mode: none, no port;read_only: true,cap_drop: ALL,no-new-privileges,pids_limit,mem_limit- Healthcheck
node /app/src/healthcheck.js(interval 10 s, timeout 5 s, 3 retries); its clients wait for it (condition: service_healthy) - Details in Harden an exposed installation
Pedagogical games hub¶
The games hub is embedded in the stack but is a standalone application: no backend dependency, no DB access, no server authentication. It is a static web bundle served by nginx; its games are written in modern JavaScript (ES modules, Vite 5), on Phaser 3.80 (2D rendering).
The detailed internal architecture of the hub (engine, scenes, Phaser components, asset format) will be covered on a dedicated page in a future section. The presence of this service in the compose file and its documentation never mention its public URL, its port, or its Docker service name — access happens only through the end-of-journey chaining handled by the backend. This is on purpose: the game is a surprise of the journey, and the documentation guard (tools/docs) checks it on every page.
Startup order and depends_on¶
The full dependency graph is described in deployment.md. Key points to remember:
- Healthchecked services (
perfshop-db,grafana,perfshop-testmgmt,perfshop-squash-db,perfshop-forgejo,perfshop-opensearch,perfshop-docker-relay,perfshop-playwright) block their consumers from starting. - Seeds (
grafana-seed,squash-seed,forgejo-seed,opensearch-seed) wait for their targets withcondition: service_healthyorcondition: service_completed_successfully. perfshop-orchestratorwaits for the successful completion ofperfshop-orchestrator-keys(condition: service_completed_successfully), a healthy Squash TM and a started runner.perfshop-squash-seedexplicitly waits for the successful completion ofperfshop-forgejo-seedbefore starting: the CI account and theperfshop-testsrepository thus exist when the trainer declares the SCM server in Squash TM (the Squash seed only creates thePerfShop QAproject and reads no token).perfshop-comptes-seedonly requires the backend andperfshop-squash-seedto have started (condition: service_started): it waits itself, within a 20-minute bound, for the backend, Squash TM and thePerfShop QAproject made by the Squash seed; an upstream failure makes it end in error, without ever failing the deployment.
To go further¶
- Deployment topology — Docker Desktop and Linux/VPS modes
- Network and domains — port details and DNS conventions
- Observability — Overview
- QA stack — Overview