# Service block for the DGX Spark's ~/services/docker-compose.yml (deploy/deploy_to_spark.sh # appends it). Standalone use: docker compose -f deploy/docker-compose.quantcore.yml up -d # # The service reaches cuOpt through the compose network (http://cuopt:5000) and keeps all its # data under ~/services/work/quantcore_data on the host (survives rebuilds and restarts). services: quantcore: build: context: ./work/Portfolio_Risk_Optimization # the rsynced repository dockerfile: deploy/Dockerfile image: local/quantcore:0.1 container_name: quantcore restart: unless-stopped ports: ["5001:5001"] environment: QUANTCORE_DATA_DIR: /data QUANTCORE_CUOPT_URL: http://cuopt:5000 QUANTCORE_CUOPT_TIME_LIMIT: "300" QUANTCORE_LOG_LEVEL: INFO QUANTCORE_ENABLE_UI: "true" # "false" for an installation whose users bring their own front end OPENBLAS_NUM_THREADS: "4" # small-matrix linear algebra is much slower with 20 threads OMP_NUM_THREADS: "4" volumes: - ./work/quantcore_data:/data depends_on: - cuopt