The project is configured through environment variables defined in a .env file
at the project root. Docker Compose reads this file and injects the variables
into each service container.
Label identifying the container hardware config (e.g. CPU, GPU_GTX1060_6GB). Set in Docker Compose per service, read by the performance monitor and VQE runner for tagging results.
Kafka bootstrap servers. Also read by the CLI entrypoint at runtime - when set, overrides the --servers flag.
KAFKA_EXTERNAL_HOST_IP
localhost
IP/hostname for external Kafka access.
KAFKA_EXTERNAL_PORT
9094
External Kafka listener port.
KAFKA_INTERNAL_PORT
9092
Internal Kafka listener port.
KAFKA_NODE_ID
1
KRaft node ID.
KAFKA_MESSAGE_MAX_BYTES
142606336
Largest record the broker accepts (136 MiB, above the producer's 128 MiB so batch overhead fits). The Kafka default of 1 MiB rejects a converged run.
KAFKA_REPLICA_FETCH_MAX_BYTES
142606336
Largest record a replica fetches (136 MiB). Keep it at least as large as KAFKA_MESSAGE_MAX_BYTES.
KAFKA_SOCKET_REQUEST_MAX_BYTES
268435456
Largest single request the broker reads (256 MiB). Keep it larger than KAFKA_MESSAGE_MAX_BYTES.
KAFKA_TOPIC
experiment.vqe
Results topic that the one-shot kafka-init service creates. Not in .env.ml.example. The Redpanda Connect sink always reads experiment.vqe, whatever this is set to.
32-byte hex admin token (generated by just setup).
S3_ACCESS_KEY
-
S3 access key. For the compose Garage, generated by just setup. For an external S3 service, set it yourself before just setup; the key must be allowed to create buckets.
S3_SECRET_KEY
-
S3 secret key, generated or set together with S3_ACCESS_KEY.
S3_REGION
garage
S3 region identifier. Set it to the external service's region when S3_ENDPOINT points elsewhere.
S3_ENDPOINT
http://garage:3901
S3 endpoint URL used by Spark, Airflow, Redpanda Connect and MLflow. The default is the compose Garage; any other URL names an external S3 service, where just setup creates the buckets. If that URL does not answer, just setup resets it to the default. See External S3 storage.
MLflow tracking server URI. Used by the quantum_pipeline.ml.tracking module to locate the tracking server. Not set in .env.ml.example (defaults to http://localhost:5000 in code).
These variables control the performance monitoring subsystem. The code default for MONITORING_ENABLED is false (in settings.py), but .env.ml.example sets it to true so monitoring is on by default in Docker Compose deployments.
Variable
Default
Description
MONITORING_ENABLED
false (code) / true (.env example)
Enable performance metric collection. Accepts true, 1, yes, on.
MONITORING_INTERVAL
10
Metric collection interval in seconds.
PUSHGATEWAY_URL
http://localhost:9091
Prometheus PushGateway URL for pushing performance metrics.
MONITORING_EXPORT_FORMAT
prometheus
Export format: json, prometheus, or both (comma-separated, e.g. json,prometheus).
GID of the docker group on the host. Used to build the Airflow image so it can access the Docker socket for batch generation DAGs. Check with stat -c '%g' /var/run/docker.sock.
CUDA compute capabilities for the GPU image build. The Dockerfile.gpu default covers Pascal to Hopper and Blackwell (via PTX). A single value builds about 4x faster and is only useful for local builds; .env.ml.example sets 6.1 (Pascal) to match the project's test hardware.
QUANTUM_PIPELINE_HOST_ROOT
$HOME/code/quantum-pipeline
Absolute path to the quantum-pipeline repo on the host. Used by docker-compose.ml.yaml and the batch generation script (scripts/generate_ml_batch.py) to resolve volume mount paths. The compose file defaults to the maintainer's local path; override this for your own system.