name: siot networks: cv: db: internal: true advantech: external: true name: advantech services: socat: image: harbor.arfa.wise-paas.com/cvmt/socat:${CVMT_BUILDTAG:-latest} build: {context: ./dev, target: socat} restart: unless-stopped profiles: [cv, ex, op] networks: [cv] volumes: [/var/run/docker.sock:/var/run/docker.sock] command: tcp-listen:2375,fork,reuseaddr unix-connect:/var/run/docker.sock trainer: image: harbor.arfa.wise-paas.com/cvmt/backend:${CVMT_BUILDTAG:-latest} privileged: true # for license check restart: unless-stopped profiles: [cv] networks: - ${CVMT_LINKNETWORK:-db} - cv volumes: - ${PWD}/app/storage:/usr/src/app/storage:rw labels: traefik.http.services.trainer.loadbalancer.server.port: 80 # traefik.http.routers.trainer.rule: Host(`trainer.${CVMT_DOMAINNAME:-local}`) traefik.http.routers.trainer.service: trainer traefik.http.routers.trainer.entrypoints: https, http # traefik.enable: ${CVMT_INGRESS:-false} environment: WORKFLOW_NAME: ${WORKFLOW_NAME:-cvmt} WORKFLOW_CVMT: ${WORKFLOW_CVMT:-http://trainer:80} # to report status from worker to server WORKFLOW_LOGGER: ${WORKFLOW_LOGGER:-journald} # forward worker log WORKFLOW_SHMSIZE: ${WORKFLOW_SHMSIZE:-2g} # limit to worker WORKFLOW_APPHOME: ${PWD}/app # dir to share datas to worker WORKFLOW_MEMLIMIT: ${WORKFLOW_MEMLIMIT:-4g} # limit to worker WORKFLOW_MEMLIMIT_ANNO: ${WORKFLOW_MEMLIMIT_ANNO:-4g} # limit to worker for anno task WORKFLOW_MEMLIMIT_TRAIN: ${WORKFLOW_MEMLIMIT_TRAIN:-8g} # limit to worker for train task WORKFLOW_MEMLIMIT_EXPORT: ${WORKFLOW_MEMLIMIT_EXPORT:-2g} # limit to worker for export task WORKFLOW_CPULIMIT: ${WORKFLOW_CPULIMIT:-30%} # limit to worker WORKFLOW_CPULIMIT_ANNO: ${WORKFLOW_CPULIMIT_ANNO:-25%} # limit to worker for anno task WORKFLOW_CPULIMIT_TRAIN: ${WORKFLOW_CPULIMIT_TRAIN:-30%} # limit to worker for train task WORKFLOW_CPULIMIT_EXPORT: ${WORKFLOW_CPULIMIT_EXPORT:-10%} # limit to worker for export task WORKFLOW_PROMETHEUS: http://prometheus:9090 POSTGRE_HOST: ${POSTGRE_HOST:-pg:5432} POSTGRE_USER: ${POSTGRE_USER:-cvmt} POSTGRE_PWD: ${POSTGRE_PWD:-p@ss} DOCKER_HOST: ${DOCKER_HOST:-tcp://socat:2375} # https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/docker-specialized.html NVIDIA_VISIBLE_DEVICES: ${NVIDIA_VISIBLE_DEVICES:-}