Environment Variables

Tip

Every variable below can be seen in the app under Settings → System, with its effective value (including values derived from APP_MEMORY_MB) and why it can’t be changed there. Secrets show only whether they are set; their values are never shown.

All configuration is driven by environment variables defined in the .env file at the repository root. Copy .env.example to .env before starting.

Memory & Upload

Upload limits are derived from a single memory budget rather than set directly. Set APP_MEMORY_MB and everything else scales automatically.

Variable

Default

Description

APP_MEMORY_MB

2048

Total RAM (in MB) allocated to the backend container — the default for the enforced container memory limit and the budget for derived settings. All derived values use the effective budget (the enforced cgroup limit when one is set, else this value): JVM heap = 50%, max upload size = 16% (at most 1/3 of the heap — the parser holds the whole capture in memory, see scripts/check_memory_budget.py), nginx body limit = max upload + 50 MB multipart buffer, the max JSON string length (report topology diagrams — see Report Generation) = 2.5% clamped to 8-256 MB, and the proxy/analysis timeout scales with memory (300–900 s). Examples: 2048 → 327 MB max upload (default), 4096 → 655 MB, 8192 → 1310 MB. The heap is 50% rather than 75% because tshark/ndpi/Suricata allocate outside the JVM heap — see Production Hardening.

BACKEND_MEM_LIMIT

APP_MEMORY_MB

Enforced backend container memory limit. Tracks APP_MEMORY_MB by default. When set explicitly it becomes the effective budget: the JVM heap, max upload size and analysis timeout are all derived from it rather than from APP_MEMORY_MB, keeping the 50%/16% split coherent at any cap. Setting it lower therefore also lowers the max upload size.

BACKEND_CPU_LIMIT

4

Backend CPU limit. Analysis is subprocess-heavy and parallel, so the backend is sized above the other services.

POSTGRES_MEM_LIMIT / POSTGRES_CPU_LIMIT

1g / 2

Postgres container limits.

MAX_UPLOAD_PACKETS

2000000

Most packets accepted in a single capture. A provisioning contract, not a hard technical ceiling: packet count is the dominant driver of database row counts, and those drive how much parallel-query shared memory Postgres needs in /dev/shm. Over-limit captures are rejected gracefully at upload (HTTP 413) rather than failing mid-analysis. Set 0 to disable the check. Raise it together with POSTGRES_SHM_SIZE / POSTGRES_WORK_MEM below to support larger captures.

MAX_UPLOAD_PACKETS_VERIFY_FRACTION

0.5

Behaviour when capinfos can’t produce a packet count (timeout/error). The gate fails closed (rejects) for files at or above this fraction of the max upload size — an unverifiable large capture is exactly the case the gate exists to stop — and fails open (allows) for smaller files, which can’t hold a dangerous packet count. Set >= 1.0 for pure fail-open.

POSTGRES_SHM_SIZE

256m

Size of the Postgres container’s /dev/shm (parallel-query shared memory). Docker’s default of 64 MB is too small: a large parallel query can fail with could not resize shared memory segment ... No space left on device even when the host has ample RAM and disk. Must exceed the worst-case per-query demand set by the three knobs below.

POSTGRES_WORK_MEM / POSTGRES_HASH_MEM_MULTIPLIER / POSTGRES_MAX_PARALLEL_WORKERS_PER_GATHER

32MB / 2.0 / 2

Postgres per-query memory knobs, pinned so a query’s /dev/shm demand is bounded rather than “whatever the planner picks”. Worst case for one query is roughly work_mem × hash_mem_multiplier × (1 + max_parallel_workers_per_gather) — with the defaults, 32MB × 2 × 3 ≈ 192 MB, which stays under POSTGRES_SHM_SIZE. If you raise POSTGRES_WORK_MEM, raise POSTGRES_SHM_SIZE to keep it above that product.

MINIO_MEM_LIMIT / MINIO_CPU_LIMIT

1g / 2

MinIO container limits.

NGINX_MEM_LIMIT / NGINX_CPU_LIMIT

256m / 1

nginx container limits. Request bodies larger than client_body_buffer_size spill to disk rather than RAM, so nginx needs far less memory than the max upload size (but does need scratch space in /tmp).

KEYCLOAK_MEM_LIMIT / KEYCLOAK_CPU_LIMIT

1g / 2

Keycloak container limits (auth overlays only).

Feature Toggles

Every switch that turns a capability on or off, in one place. Each is also documented in its own section below with the surrounding detail.

Variable

Default

Effect

KEYCLOAK_REALM

tracepcap

The Keycloak realm people sign in through. The bundled Keycloak creates tracepcap; set this to use a realm of your own, such as your organisation’s shared realm. Baked into the frontend, so changing it needs a rebuild.

KEYCLOAK_CLIENT_ID

tracepcap

TracePcap’s client in that realm. Its client roles are TracePcap’s roles (see Roles and Permissions). Baked into the frontend, so changing it needs a rebuild. Up to v0.4 the client was called tracepcap-frontend: see Upgrading from v0.4: the client was renamed.

TRACEPCAP_AUTH_ENABLED

false

Gates the API behind a Keycloak JWT and adds a login flow. Set to true by the production overlays; you rarely set it directly. See Authentication (OIDC / Keycloak).

SYSTEM_SETTINGS_EDITABLE

false

With login off, decides whether actions marked admin-only (such as changing retention) are allowed for everyone (true) or for no one (false). Ignored with login on, where the Keycloak client role admin decides. See Managing Users (Keycloak).

SURICATA_ENABLED

true

Deployment-wide switch for intrusion-detection enrichment. false skips it for every capture regardless of the per-upload toggle. Adds ~50 s of fixed rule-loading overhead to each capture it processes, on top of packet scanning that scales with size. The fixed floor makes it the biggest throughput lever, and proportionally heaviest on small captures.

FILE_RETENTION_ENABLED

true

Master switch for automatic deletion. false keeps captures indefinitely and the clean-up scheduler is never registered, so no other retention setting has any effect. See Production Hardening.

STUCK_FILE_RECONCILIATION_ENABLED

true

Scheduled job that flips captures stranded in PROCESSING to FAILED after a timeout. Disabling it leaves crashed or restart-interrupted analyses stuck indefinitely.

GEO_ENRICHMENT_ENABLED

true

Turns geolocation enrichment off entirely — no lookups, no bundled-database resolution, so captures analyzed while it is off get no geo fields. Distinct from GEO_FORCE_OFFLINE, which keeps enrichment but stops it reaching the network. Not retroactive. See Geolocation.

GEO_FORCE_OFFLINE

true

Resolves geolocation from the bundled database only, with no ipinfo.io connectivity probe and no lookups, in every stack. false opts in to ipinfo.io when it’s reachable, the only outbound call TracePcap makes at runtime. See Geolocation.

Note

These are deployment-wide. Several analysis features also have per-upload toggles in the UI (nDPI, Suricata, file extraction) which apply to a single capture. Where both exist the deployment-wide switch wins: turning Suricata off here skips it even for an upload that requested it.

Note

AI features are switched by configuration rather than a boolean: they are governed by LLM_API_BASE_URL — point it at a reachable local inference server to enable them; the production overlays require it to be set explicitly. Custom detection rules are not configured here at all: they live in the database and are edited on the Settings page (see Signature Rule Authoring Guide).

File Retention

Retention is entirely opt-out. To keep everything indefinitely — the usual choice for air-gapped or evidence-preservation deployments — set:

FILE_RETENTION_ENABLED=false

That is sufficient on its own, and it is the master switch: the cleanup scheduler is not registered at all, so none of the settings below do anything while it is false.

Deleting a file, by hand or through expiry, removes the original capture, its analysis results and any content extracted from it. An hourly sweep also removes extracted content left behind by a failed delete or by an older version. The sweep runs even with FILE_RETENTION_ENABLED=false, because it only touches content whose file has already been deleted.

Danger

0 does not mean “never” for FILE_RETENTION_HOURS. It means delete every analysis file immediately — an expiry cutoff of “now” — and the next hourly sweep will remove them all.

0 means “never” only for MONITOR_FILE_RETENTION_HOURS and PACKET_RETENTION_HOURS, which are explicitly guarded against zero. To disable deletion, use FILE_RETENTION_ENABLED=false; never FILE_RETENTION_HOURS=0.

Deletion is only ever triggered by these settings; nothing else in the application removes captures or packets on its own.

The three retention hours can also be changed in the app, on the Settings page, by an admin (see Who can change what). The value here stays the default, and the app refuses FILE_RETENTION_HOURS below 1.

Variable

Default

Description

FILE_RETENTION_ENABLED

true

Set to false to keep uploaded files indefinitely and disable the automatic cleanup scheduler entirely. Useful for air-gapped or long-term-audit deployments where evidence preservation is required.

FILE_RETENTION_HOURS

12

Number of hours after upload before an analysis file is automatically deleted (only applies when FILE_RETENTION_ENABLED=true). Not zero-guarded — 0 deletes everything immediately; see the warning above. Monitor Network files are exempt and use MONITOR_FILE_RETENTION_HOURS instead.

MONITOR_FILE_RETENTION_HOURS

0

Number of hours before a monitor-mode snapshot file is deleted; 0 (the default) means never. Monitor networks are a time series, so expiring their snapshots destroys the drift history that makes them useful — which is why they are exempt from FILE_RETENTION_HOURS. Monitor mode is consequently where unbounded growth accumulates on a long-lived deployment.

Warning

Setting a non-zero value here is not currently recommended. Scheduled cleanup deletes the file directly, bypassing the snapshot re-ordering and change-detection replay that removing a snapshot through the UI performs, which leaves gaps in snapshot_order and orphaned change events. Prune monitor snapshots through the UI until issue #635 is resolved.

PACKET_RETENTION_HOURS

0

Number of hours after upload before a file’s raw packets are pruned, while the file keeps its conversations and analysis results (0 = packets live as long as the file). Packets dominate database size (~1.5–2M rows per GB of PCAP), so setting this below FILE_RETENTION_HOURS reclaims most of the storage early at the cost of packet-level drill-down. Pruning drops the file’s packets partition outright, so it is O(1) regardless of size.

Analysis Queue & Reconciliation

Uploaded files are analyzed asynchronously by an in-memory thread pool. Analysis is Suricata-dominated: for every capture Suricata processes it adds roughly 50 s of fixed overhead, because the full rule set is reloaded on each invocation. Packet scanning on top of that still scales with capture size, so total analysis time grows — but the 50 s floor is paid even by a tiny capture. Throughput is CPU-bound. When the pool and its queue are both full the executor applies back-pressure: the upload request runs the analysis inline and slows down, rather than dropping the file. A reconciliation job additionally flips any file left stuck in PROCESSING past a timeout to FAILED (covering crashes and restarts, since the queue is in-memory and lost on restart).

Sizing guidance: keep ASYNC_MAX_POOL_SIZE at or below the host CPU core count to avoid CPU contention between concurrent Suricata runs. Raise ASYNC_QUEUE_CAPACITY to absorb larger bursts before back-pressure kicks in. For a 24-core box, ASYNC_MAX_POOL_SIZE=20 (leaving headroom for the JVM, DB, and MinIO) with a queue of a few hundred is a reasonable starting point.

Variable

Default

Description

ASYNC_CORE_POOL_SIZE

5

Number of threads kept alive to run analyses. These stay up even when idle. This is also how many analyses run at once, because extra threads up to ASYNC_MAX_POOL_SIZE start only once ASYNC_QUEUE_CAPACITY is full. Each running analysis holds two database connections, so keep DB_POOL_MAX_SIZE at least 2 x ASYNC_CORE_POOL_SIZE + 5. The backend logs a warning at startup when it is smaller.

ASYNC_MAX_POOL_SIZE

10

Maximum analysis threads. Keep at or below the host CPU core count — analysis is CPU-bound (Suricata), so oversubscribing degrades throughput.

ASYNC_QUEUE_CAPACITY

100

Files that may wait in the in-memory queue once all threads are busy. Once the queue is also full, uploads apply back-pressure (run analysis inline). This queue is not persisted — pending work is lost on restart and recovered as FAILED by reconciliation.

STUCK_FILE_RECONCILIATION_ENABLED

true

Set to false to disable the scheduled job that flips files stuck in PROCESSING to FAILED.

STUCK_FILE_TIMEOUT_MINUTES

30

Minutes a file may stay in PROCESSING before reconciliation marks it FAILED. Must exceed the longest expected analysis time so healthy in-flight jobs are never killed.

SURICATA_ENABLED

true

Deployment-wide kill-switch for Suricata IDS enrichment. Set to false to skip Suricata for every file regardless of the per-file upload toggle. On each capture it processes it adds ~50 s of fixed overhead — the rule set is reloaded each time — plus packet scanning that does scale with size. On a 538 KB test capture the fixed floor alone was ~94% of total analysis time; on a large capture it is a much smaller share.

Nginx

Variable

Default

Description

NGINX_PORT

80

Host port on which nginx listens. Change if port 80 is already in use.

NGINX_BACKEND_URL

http://backend:8080

Where nginx proxies /api and Swagger. Only needed outside Compose: nginx’s resolver ignores DNS search domains, so on Kubernetes this must be the fully qualified Service URL (the Helm chart sets it). scheme://host:port only: a trailing slash is stripped, and a path stops nginx at startup, because nginx would send it in place of every request’s own path.

NGINX_KEYCLOAK_URL

http://keycloak:8080

Where nginx proxies the Keycloak paths when auth is enabled.

NGINX_RESOLVER

first nameserver in /etc/resolv.conf

DNS server nginx re-resolves the upstreams with. Docker’s embedded DNS (127.0.0.11) under Compose, the cluster DNS on Kubernetes. An IPv6 address is bracketed for you.

NGINX_RESOLVER_IPV6

on if the resolver is IPv6, else off

Whether nginx also looks up AAAA records. IPv6-only clusters need on (their Service names have only AAAA records). Set it explicitly for a dual-stack cluster whose resolver is IPv4 but whose Services are IPv6.

These nginx variables are read by the nginx container itself, so set them on that service.

Public Origin & Authentication

These variables apply only when running with the production overlay that enables OIDC/Keycloak authentication. See Authentication (OIDC / Keycloak) for the full walkthrough. They are ignored by the base stack.

Variable

Default

Description

PUBLIC_URL

http://localhost:8888

The exact origin you browse to (scheme + host + port). Pins Keycloak’s token issuer and the backend’s issuer check, so the browser must load the app via this same origin. Include the port only if non-standard (e.g. :8888); omit for standard 80/443. Does not track NGINX_PORT — set it to match your actual port.

KEYCLOAK_REALM

tracepcap

The Keycloak realm people sign in through. The bundled Keycloak creates tracepcap; set this to use a realm of your own, such as your organisation’s shared realm. Baked into the frontend, so changing it needs a rebuild.

KEYCLOAK_CLIENT_ID

tracepcap

TracePcap’s client in that realm. Its client roles are TracePcap’s roles (see Roles and Permissions). Baked into the frontend, so changing it needs a rebuild. Up to v0.4 the client was called tracepcap-frontend: see Upgrading from v0.4: the client was renamed.

TRACEPCAP_AUTH_ENABLED

false

Backend toggle. When false (default, base stack) the API is permit-all. The prod overlay sets this to true to gate /api behind a Keycloak JWT.

KEYCLOAK_ADMIN

(none)

Keycloak bootstrap admin username (admin console is served same-origin at /admin). Required — the production overlays abort if unset.

KEYCLOAK_ADMIN_PASSWORD

(none)

Keycloak bootstrap admin password. Required — the production overlays abort if unset. See Production Hardening.

Note

KEYCLOAK_ISSUER_URI, KEYCLOAK_JWK_SET_URI, and the VITE_AUTH_* build args are set automatically by docker-compose.prod.yml and derived from PUBLIC_URL, KEYCLOAK_REALM and KEYCLOAK_CLIENT_ID: you normally do not set them by hand.

Spring Profile & CORS

The active Spring profile selects dev vs. hardened behaviour. The two *-prod.yml overlays set SPRING_PROFILES_ACTIVE=prod; the base stacks run dev. See Production Hardening for the full profile matrix.

Variable

Default

Description

SPRING_PROFILES_ACTIVE

dev (base) / prod (*-prod.yml overlays)

prod enforces strict CORS, disables Swagger + /v3/api-docs, suppresses stacktraces/exception details in error responses, and logs at WARN to a file.

CORS_ALLOWED_ORIGINS

dev: localhost list / prod: (empty)

Comma-separated allowed browser origins for /api. Under prod it has no localhost defaults; leave it empty for the same-origin shipped stack (nginx proxies /api, so CORS is never exercised). Set it only when the frontend is hosted on a different origin from the API.

LOG_DIR

/app/logs

Directory for the prod profile’s application.log (created and owned by the container’s non-root user at startup). Ignored under dev (console-only logging).

LLM

Variable

Default

Description

LLM_API_BASE_URL

http://localhost:1234/v1

Base URL of an OpenAI-compatible inference API. See LLM Setup.

LLM_API_KEY

(empty)

API key sent in the Authorization: Bearer header. Leave empty for local servers that don’t require authentication.

LLM_MODEL

Qwen2.5-14B-Coder-Instruct

Model identifier passed in each API request. Must match a model loaded on your inference server.

LLM_TEMPERATURE

0.7

Sampling temperature (0.0–2.0). Lower values produce more deterministic output; higher values more creative output.

LLM_MAX_TOKENS

8000

Maximum number of tokens the LLM may generate per response. Controls response length only — not the context window. Increase if stories are cut off; decrease to save compute. Recommended 4000–8000.

LLM_CONTEXT_LENGTH

(auto)

The context window size (in tokens) configured on your LLM server. Used to detect prompt-too-large errors early. If unset, auto-detected from the /v1/models endpoint; if that fails, the configured LLM_MAX_TOKENS value remains in effect. Example: 32768 for a 32k model.

LLM_TIMEOUT

300

HTTP timeout in seconds for LLM API requests. Local models can be slow — increase if you get timeout errors.

LLM_TOOL_CALLING

auto

Whether Story mode’s investigation phase declares its query as a native tool, so the server constrains generation to the real schema instead of letting the model free-type JSON. auto offers tools once and remembers whether the server accepted them; on always offers them; off never does and uses the free-text JSON path. Support varies by backend — leave on auto unless a server misreports its capabilities.

Geolocation

External IP addresses are enriched with country, city and (online only) ASN. Two independent switches govern this: GEO_ENRICHMENT_ENABLED decides whether geolocation happens at all, and GEO_FORCE_OFFLINE decides where the answer comes from. They are easy to confuse.

GEO_ENRICHMENT_ENABLED=false  ->  no geo data at all (no lookups of any kind)
GEO_FORCE_OFFLINE=true        ->  geo data from the bundled MMDB only, zero egress (default)
GEO_FORCE_OFFLINE=false       ->  ipinfo.io when reachable, MMDB when not (opt-in)

To stop geolocation reaching the network, leave GEO_FORCE_OFFLINE=true (the default); don’t set GEO_ENRICHMENT_ENABLED=false. The MMDB lookup is local to the container and never touches the network, so disabling enrichment outright loses the map, the country columns and the geo-based scanning signals for no egress benefit. See Offline / Air-Gapped Deployment.

Variable

Default

Description

GEO_ENRICHMENT_ENABLED

true

Master switch. false skips every lookup — online and offline alike — so captures analyzed while it is off carry no country, city or ASN. It is not retroactive: rows already written keep their geo, and entries already in ip_geo_cache are still served to the features that read the cache directly (subnet label suggestions, host identity evidence, change detection). Clear the cache table if you need the data gone.

GEO_FORCE_OFFLINE

true

true (every stack) resolves from the bundled DB-IP Lite MMDB only (geo_source = mmdb), with no ipinfo.io connectivity probe and no lookups. false opts in to ipinfo.io when reachable, which adds ASN and organisation; the MMDB doesn’t have them, so those fields stay empty by default.

GEO_MMDB_PATH

(bundled)

Override the location of the offline MMDB. Empty (the default) uses the DB-IP Lite database bundled in the backend image at /app/geoip/dbip-city-lite.mmdb. Set it only when mounting a newer or commercial MaxMind-format database.

A path that does not exist logs a warning and falls back to the bundled copy. A path that exists but cannot be opened — corrupt file, wrong format, or unreadable permissions on a bind mount — does not fall back: it logs Failed to open GeoIP MMDB and leaves the deployment with no offline database at all. Check the startup log for GeoIP MMDB loaded successfully after pointing this at your own file.

Results are cached in ip_geo_cache with the source that produced them, and re-looked up after 30 days. Switching a deployment offline therefore does not invalidate geo data already resolved via ipinfo.io.

Overview Applications

Variable

Default

Description

OVERVIEW_APPS_LIMITED

true

Cap the number of detected applications shown in the overview. Set to false to show all detected applications regardless of count.

OVERVIEW_APPS_MAX

100

Maximum detected applications shown in the overview when OVERVIEW_APPS_LIMITED=true (ranked alphabetically).

File Extraction

Tunes the limits applied when extracting embedded files from captures. When any limit is hit, a warning is shown on the Extracted Files tab. See File Extraction.

Variable

Default

Description

EXTRACTION_MAX_MATCHES_PER_STREAM

20

Max files extracted from a single raw TCP/UDP stream. Guards against runaway extraction on streams with many magic-byte sequences.

EXTRACTION_MAX_STREAM_CONVERSATIONS

50

Max number of non-HTTP streams scanned for embedded files per PCAP.

EXTRACTION_MAX_FILE_SIZE_MB

50

Max size (MB) of a single extracted file that will be stored. Larger files are detected but skipped (shown with a “Too large” badge).

Report Generation

The PDF report request carries the network map, drawn by the browser, as a base64-encoded JPEG in a single JSON string field (usually around 1 MB). Jackson caps any single JSON string token at 20 MB by default, purely as a memory-safety guard against unbounded allocation from one request — a dense topology’s captured diagram can exceed that, which fails the request with String length (...) exceeds the maximum length (...) before it reaches the controller.

There is no separate variable for this. Like the upload limit in Memory & Upload, it is derived from APP_MEMORY_MB by backend/docker-entrypoint.sh: 2.5% of the effective budget, clamped to 8-256 MB. At the default APP_MEMORY_MB=2048 that is ~51 MB — above Jackson’s 20 MB default but still a small, heap-proportional ceiling rather than a flat one, so it doesn’t threaten a small deployment’s heap the way a fixed 50 MB default would. Raise APP_MEMORY_MB (see Memory & Upload) if large/dense topology diagrams still fail to download. See PDF Report Export.

Frontend (build-time)

VITE_* variables are baked in at build time, so changing them requires a rebuild (docker compose up -d --build).

Variable

Default

Description

VITE_MAP_RESOLUTION

50m

Polygon fidelity of the world map. 110m (~170 KB, low-resource), 50m (default, ~760 KB), or 10m (~1 MB, high-fidelity coastline).

VITE_SUPPORTED_FILE_TYPES

.pcap,.pcapng,.cap

Comma-separated list of accepted upload extensions.

VITE_NETWORK_DIAGRAM_CONVERSATION_LIMIT

false

Toggles the 500-conversation rendering cap in the Network Topology Diagram. Set true to enable the cap (render at most 500 conversations). The shipped .env.example default is false, which disables the cap and loads every conversation — this may cause browser slowdowns or out-of-memory errors on large captures.

APP_VERSION

the APP_VERSION file

Version string rendered in the app footer (passed as the VITE_APP_VERSION build arg). When unset, the build reads the APP_VERSION file at the repo root, which CI rewrites on every merge to dev. GHCR images set it from git describe --tags.

Database Configuration (internal)

The following variables configure the PostgreSQL connection. They are set automatically by Docker Compose and generally do not need to be changed unless you are connecting to an external database.

Variable

Description

POSTGRES_DB

Database name

POSTGRES_USER

Database user

POSTGRES_PASSWORD

Database password — change this in production. The backend’s DATABASE_PASSWORD is derived from this value in the compose files, so the two cannot drift apart; there is no separate variable to set.

MinIO Configuration (internal)

Variable

Description

MINIO_ROOT_USER

MinIO admin username (default minioadmin) — change in production

MINIO_ROOT_PASSWORD

MinIO admin password (default minioadmin) — change in production

Build Resources

The containers’ memory and CPU limits (*_MEM_LIMIT, *_CPU_LIMIT) apply while the stack runs. They don’t apply to docker compose build, and BuildKit has no build-time memory limit, so the build stages cap themselves. Building both images at once next to a running stack, uncapped, has frozen a 15 GB machine.

Variable

Default

Description

BUILD_JVM_MAX_HEAP

768m

Maven’s JVM heap for the backend build (otherwise a quarter of the host’s RAM).

BUILD_JOBS

2

Parallel compile jobs for nDPI in the backend image (compiled for arm64 images; amd64 uses a prebuilt one).

BUILD_NODE_MAX_HEAP_MB

1536

Node’s heap for tsc and vite in the frontend build.

scripts/rebuild.sh builds the images one at a time and then starts the stack; prefer it to docker compose up -d --build, which builds them in parallel. It takes the same -f arguments as docker compose. Measured on an 8-core, 16 GB machine with the stack running: the backend build adds about 0.5 GB and the frontend build about 2 GB.