Deployment Files

Perform the following steps to deploy On-premises files.

  1. docker-compose.yml

version: "3"
services:
  nginx:
    image: qureai/nginx:qureapp 
    container_name: qureapp_nginx
    command: "/start.sh"
    env_file: hct_api.env
    restart: always
    ports:
      - "2001:80"
  qure-api:
    image: qureai/qure_platform_api:3.1.5.release.1f19fbb
    container_name: qureapi
    command: startgunicorn
    restart: always
    volumes:
       - qureapi-data:/srv/data
       - ./default_run_config.json:/srv/default_run_config.json
    ports:
      - "8080:8080"
    env_file: hct_api.env

  postgres:
    image: postgres
    container_name: psql_new
    command: "postgres -N 1000"
    restart: unless-stopped
    volumes:
      - qureapi-db:/var/lib/postgresql/data
    environment:
      - POSTGRES_HOST_AUTH_METHOD=trust
      - POSTGRES_USER=qure_user
      - POSTGRES_DB=qure_app
    ports:
      - "5432:5432"
  qure-api-worker-1:
    image: qureai/qure_platform_api:3.1.5.release.1f19fbb
    container_name: qureapiworker-1
    command: run_workers_threaded --num_workers=4
    env_file: hct_api.env
    volumes:
        - qureapi-data:/srv/data
        - qer-checkpoints:/srv/qer_checkpoints
        - qxr-checkpoints:/srv/cxr_checkpoints
        - qxr-blaze-checkpoints:/srv/qxr_blaze_checkpoints
        - qct-checkpoints:/srv/qct_checkpoints:ro
    restart: always
    logging:
      driver: "json-file"
      options:
        max-size: "1m"
    deploy:
      resources:
        reservations:
          devices:
            - driver: nvidia
              count: 1
              capabilities: [gpu]
  qure-api-notebook:
    image: qureai/qure_platform_api:3.1.5.release.1f19fbb
    container_name: qureapi-notebook
    command: shell_plus --notebook -- --allow-root --ip 0.0.0.0 --NotebookApp.password=sha1:e9c30f3ff952:f15a3ef7d43f87f98048d9503149cb81b49cd539
    restart: always
    volumes:
       - qureapi-data:/srv/data
       - notebooks:/app/services/qure_platform_api/qure_platform_api_image.binary.runfiles/qureai/notebooks/
    ports:
      - "5888:8888"
    env_file: hct_api.env

  qer_checkpoints:
    image: qureai/hct_checkpoints:v3_ncct_cta_integration
    container_name: qer_checkpoints
    command: "tail -f /dev/null"
    restart: unless-stopped
    volumes:
      - qer-checkpoints:/checkpoints
  qct_checkpoints:
    image: qureai/qct_checkpoints:v1.3
    container_name: qct_checkpoints
    command: "tail -f /dev/null"
    restart: unless-stopped
    volumes:
      - qct-checkpoints:/qct_checkpoints:ro
  cxr_checkpoints:
    image: qureai/qxr_checkpoints:4.0.3_ts_models_unencrypted 
    container_name: cxr_checkpoints
    command: "tail -f /dev/null"
    restart: unless-stopped
    volumes:
      - qxr-checkpoints:/cxr_checkpoints:ro
  blaze_checkpoints:
    image: qureai/qxr_checkpoints:blaze_3.1
    container_name: blaze_checkpoints
    command: "tail -f /dev/null"
    restart: unless-stopped
    volumes:
      - qxr-blaze-checkpoints:/qxr_blaze_checkpoints
  

volumes:
  qureapi-data:
  qer-checkpoints:
  qxr-checkpoints:
  qxr-blaze-checkpoints:
  qct-checkpoints:
  qureapi-db:
  django_channel_data:
  1. hct_api.env

  1. default_run_config.json

Log in to the docker-compose.

Attention:

If the server does not have internet access, use the following command to transfer Docker images from one system to another.

Last updated

Was this helpful?