CoolFace
Apppublic

DBJus/LabelStudio

sourceHugging Faceapache-2.0updated 3y agoView on Hugging Face
0likes
Dockerfile100 linesDownload Raw Back to root
1FROM heartexlabs/label-studio:hf-latest2 3################################################################################4#5# How to Disable Public Account Creation6# --------------------------------------7# By default this space allows for the unrestricted creation of new accounts8# will full access to all projects and data. This is great for trying out9# Label Studio and collaborating on projects, but you may want to restrict10# access to your space to only authorized users. Uncomment the following line11# to disable public account creation for this space.12#13ENV LABEL_STUDIO_DISABLE_SIGNUP_WITHOUT_LINK=true14#15# Set secrets in your space to create an inital user, and log in with your16# provided username and password. Do not set these in your Dockerfile, as they17# globally visible on a public space.18#19# LABEL_STUDIO_USERNAME20# LABEL_STUDIO_PASSWORD21#22# You will need to provide new users with an invitation link to join the space.23#24################################################################################25 26################################################################################27#28# How to Enable Configuration Persistence29# ---------------------------------------30# By default this space stores all project configuration and data annotations31# in local storage with Sqlite. If the space is reset, all configuration and32# annotation data in the space will be lost. You can enable configuration33# persistence by connecting an external Postgres database to your space,34# guaranteeing that all project and annotation settings are preserved.35#36# Set the following secret variables to match your own hosted instance of37# Postgres. We strongly recommend setting these as secrets to prevent leaking38# information about your database service to the public in your spaces39# definition.40#41# ENV DJANGO_DB=default42# ENV POSTGRE_NAME=<postgres_name>43# ENV POSTGRE_PORT=<db_port>44# ENV POSTGRE_USER=<postgres_user>45# ENV POSTGRE_PASSWORD=<password>46# ENV POSTGRE_PORT=<db_port>47# ENV POSTGRE_HOST=<db_host>48#49# Uncomment the following line to remove the warning about ephemeral storage50#51ENV STORAGE_PERSISTENCE=152#53# Note that you will need to connect cloud storage to host data items that you54# want to annotate, as local storage will not be preserved across a space reset.55#56################################################################################57 58################################################################################59#60# How to Enable Cloud Storage61# ---------------------------62# By default the only data storage enabled for this space is local. In the case63# of a space reset, all data will be lost. To enable permanent storage, you64# must enable a cloud storage connector. We also strongly recommend enabling65# configuration persistence to preserve project data, annotations, and user66# settings. Choose the appropriate cloud connector and configure the secrets67# for it.68#69# Amazon S370# =========71# STORAGE_TYPE=s372# STORAGE_AWS_ACCESS_KEY_ID="<YOUR_ACCESS_KEY_ID>"73# STORAGE_AWS_SECRET_ACCESS_KEY="<YOUR_SECRET_ACCESS_KEY>"74# STORAGE_AWS_BUCKET_NAME="<YOUR_BUCKET_NAME>"75# STORAGE_AWS_REGION_NAME="<YOUR_BUCKET_REGION>"76# STORAGE_AWS_FOLDER=""77# 78# Google Cloud Storage79# ====================80# 81# STORAGE_TYPE=gcs82# STORAGE_GCS_BUCKET_NAME="<YOUR_BUCKET_NAME>"83# STORAGE_GCS_PROJECT_ID="<YOUR_PROJECT_ID>"84# STORAGE_GCS_FOLDER=""85# GOOGLE_APPLICATION_CREDENTIALS="/opt/heartex/secrets/key.json"86# 87# Azure Blob Storage88# ==================89# 90# STORAGE_TYPE=azure91# STORAGE_AZURE_ACCOUNT_NAME="<YOUR_STORAGE_ACCOUNT>"92# STORAGE_AZURE_ACCOUNT_KEY="<YOUR_STORAGE_KEY>"93# STORAGE_AZURE_CONTAINER_NAME="<YOUR_CONTAINER_NAME>"94# STORAGE_AZURE_FOLDER=""95# 96#97################################################################################98 99CMD exec label-studio --host=$SPACE_HOST100