Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions deployment/docker/label-studio/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
services:

app:
stdin_open: true
tty: true
image: heartexlabs/label-studio:latest
restart: unless-stopped
user: root
expose:
- "8000"
ports:
- "8000:8000"
depends_on:
- db
environment:
- DJANGO_DB=default
- POSTGRE_NAME=postgres
- POSTGRE_USER=postgres
- POSTGRE_PASSWORD=
- POSTGRE_PORT=5432
- POSTGRE_HOST=db
- LABEL_STUDIO_HOST=${LABEL_STUDIO_HOST:-}
- LOCAL_FILES_SERVING_ENABLED=true
- LOCAL_FILES_DOCUMENT_ROOT=/label-studio/local
- USE_USERNAME_FOR_LOGIN=true
- LABEL_STUDIO_USERNAME=admin@huawei.com
- LABEL_STUDIO_PASSWORD=admin1234
- LABEL_STUDIO_ENABLE_LEGACY_API_TOKEN=true
- LABEL_STUDIO_USER_TOKEN=abc123abc123
- LOG_LEVEL=INFO
volumes:
- label-studio-data:/label-studio/data:rw
- dataset_volume:/label-studio/local:rw
command: label-studio-uwsgi

db:
image: pgautoupgrade/pgautoupgrade:13-alpine
hostname: db
restart: unless-stopped
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
- POSTGRES_USER=postgres
volumes:
- label-studio-db:/var/lib/postgresql/data

volumes:
label-studio-data:
label-studio-db:
dataset_volume:
name: datamate-dataset-volume
31 changes: 0 additions & 31 deletions runtime/datamate-python/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -66,37 +66,6 @@ MYSQL_USER=label_studio_user
MYSQL_PASSWORD=user_password
MYSQL_DATABASE=label_studio_adapter

# =========================
# Label Studio 数据库配置 (PostgreSQL)
# =========================
# 仅在使用 docker-compose.label-studio.yml 启动 Label Studio 时需要配置
POSTGRES_HOST=label-studio-db
POSTGRES_PORT=5432
POSTGRES_USER=labelstudio
POSTGRES_PASSWORD=labelstudio@4321
POSTGRES_DATABASE=labelstudio

# =========================
# SQLite 数据库配置(兜底选项)
# =========================
# 优先级3:如果没有配置 MySQL/PostgreSQL,将使用 SQLite
SQLITE_PATH=./data/labelstudio_adapter.db

# =========================
# 可选:直接指定数据库 URL
# =========================
# 如果设置了此项,将覆盖上面的 MySQL/PostgreSQL/SQLite 配置
# DATABASE_URL=postgresql+asyncpg://user:password@host:port/database

# =========================
# 安全配置
# =========================
# 密钥(生产环境务必修改)
SECRET_KEY=your-secret-key-change-this-in-production

# Token 过期时间(分钟)
ACCESS_TOKEN_EXPIRE_MINUTES=30

# =========================
# CORS 配置
# =========================
Expand Down
1 change: 0 additions & 1 deletion runtime/datamate-python/app/__init__.py

This file was deleted.

19 changes: 0 additions & 19 deletions runtime/datamate-python/app/api/__init__.py

This file was deleted.

11 changes: 0 additions & 11 deletions runtime/datamate-python/app/api/project/__init__.py

This file was deleted.

130 changes: 0 additions & 130 deletions runtime/datamate-python/app/api/project/create.py

This file was deleted.

106 changes: 0 additions & 106 deletions runtime/datamate-python/app/api/project/delete.py

This file was deleted.

Loading