Skip to content

armgit / ODS

Public Imported from GitHub
0

ODS V3 Pre-Release: Public testing and refinement ahead of the official V3 launch. Turn your PC, Mac, or Linux box into a private AI server.

1.2 KB
Raw Blame
services:
  label-studio:
    image: heartexlabs/label-studio:1.22.0@sha256:86b4e8046e83a16290cb2d1046f0fa94a4c98fdb9c8d42711808f18e25d47be2
    container_name: ods-label-studio
    restart: unless-stopped
    security_opt:
      - no-new-privileges:true
    environment:
      - LABEL_STUDIO_LOCAL_FILES_SERVING_ENABLED=true
      - LABEL_STUDIO_DATA_ROOT=/label-studio/data
      - LABEL_STUDIO_STATIC_ASSETS_ROOT=/label-studio/www
      - LABEL_STUDIO_UPLOAD_DIR=/label-studio/upload
      - LABEL_STUDIO_MEDIA_ROOT=/label-studio/media
    volumes:
      - ./data/label-studio:/label-studio/data:rw
      - ./upload:/label-studio/upload:rw
      - ./media:/label-studio/media:rw
      - ./www:/label-studio/www:rw
    ports:
      - "127.0.0.1:${LABEL_STUDIO_PORT:-8086}:8080"
    healthcheck:
      test: ["CMD", "curl", "-sf", "http://127.0.0.1:8080/health"]
      interval: 30s
      timeout: 10s
      retries: 3
      start_period: 30s
    networks:
      - ods-network
    deploy:
      resources:
        limits:
          cpus: '2.0'
          memory: 2G
        reservations:
          cpus: '0.5'
          memory: 512M

networks:
  ods-network:
    external: true