# quantcore for a platform team: the JSON API and /docs, no test bench. # # docker compose -f deploy/docker-compose.students.yml up -d --build # curl http://localhost:5001/health # # The MILP solver is optional. Point QUANTCORE_CUOPT_URL at a cuOpt server if you have one (on a DGX # Spark: http://:5000); if it is unreachable, every optimisation falls back to HiGHS on the CPU # -- slower on large problems, same model, same answer, and the result says which solver produced it. # # The data directory is mounted, not baked in: run the setup once (POST /jobs/setup, ~15 min) or copy # a prepared ./data next to this file. services: quantcore: build: context: .. dockerfile: deploy/Dockerfile image: quantcore:0.1 container_name: quantcore restart: unless-stopped ports: ["5001:5001"] environment: QUANTCORE_DATA_DIR: /data QUANTCORE_CUOPT_URL: ${QUANTCORE_CUOPT_URL:-http://cuopt:5000} QUANTCORE_CUOPT_TIME_LIMIT: "300" QUANTCORE_ENABLE_UI: "false" # the test bench is not part of the deliverable QUANTCORE_LOG_LEVEL: INFO OPENBLAS_NUM_THREADS: "4" # small-matrix linear algebra is much slower with all cores OMP_NUM_THREADS: "4" volumes: - ../data:/data