viharme / docker-compose.yml
Pinminh
Change port
4e8edb9
# 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: