File size: 1,293 Bytes
522638b
 
 
 
 
 
 
 
 
 
 
 
 
 
4e8edb9
522638b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Comments are provided throughout this file to help you get started.
# If you need more help, visit the Docker Compose reference guide at
# https://docs.docker.com/go/compose-spec-reference/

# Here the instructions define your application as a service called "server".
# This service is built from the Dockerfile in the current directory.
# You can add other services your application may depend on here, such as a
# database or a cache. For examples, see the Awesome Compose repository:
# https://github.com/docker/awesome-compose
services:
  label-studio:
    image: heartexlabs/label-studio:latest
    container_name: label-studio
    ports:
      - "7860:8080"
    environment:
      # Disable any cloud storage — use local file system only
      - STORAGE_TYPE=local

      # Base directory for local media and exports (inside container)
      - LOCAL_FILES_SERVING_ENABLED=true
      - LOCAL_FILES_DOCUMENT_ROOT=/label-studio/data

      # Label Studio host (optional)
      - LABEL_STUDIO_HOST=${LABEL_STUDIO_HOST}
      - CORS_ALLOW_ALL_ORIGINS=true
      - USE_ENFORCE_CSRF_CHECKS=false

    volumes:
      # This maps your local ./data folder to /label-studio/data inside the container
      - ./data:/label-studio/data

    restart: unless-stopped

volumes:
  labelstudio_data: