Skip to content

Commit b00d236

Browse files
author
zhanglongbin
committed
add label studio server
1 parent f41777c commit b00d236

1 file changed

Lines changed: 30 additions & 1 deletion

File tree

docker-compose-stg.yml

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,36 @@ services:
111111
- dataflow_celery_worker
112112
networks:
113113
- csg-network
114-
114+
dataflow_label_studio:
115+
stdin_open: true
116+
tty: true
117+
build: .
118+
image: opencsg-registry.cn-beijing.cr.aliyuncs.com/opencsghq/label-studio:latest
119+
restart: unless-stopped
120+
expose:
121+
- "8002"
122+
depends_on:
123+
- dataflow_postgres_db
124+
environment:
125+
- DJANGO_DB=default
126+
- POSTGRE_NAME=postgres
127+
- POSTGRE_USER=postgres
128+
- POSTGRE_PASSWORD=postgres
129+
- POSTGRE_PORT=5432
130+
- POSTGRE_HOST=dataflow_postgres_db
131+
- LABEL_STUDIO_HOST=${LABEL_STUDIO_HOST:-}
132+
- JSON_LOG=1
133+
- LABEL_STUDIO_HOST=0.0.0.0
134+
- CSG_HUB_ENDPOINT= https://hub.opencsg-stg.com
135+
- LABEL_STUDIO_PORT=8002
136+
# - LOG_LEVEL=DEBUG
137+
volumes:
138+
- /root/dataflow/dataflow-v2/label-studio:/label-studio/data:rw
139+
ports:
140+
- "8002:8002"
141+
command: label-studio
142+
networks:
143+
- csg-network
115144
networks:
116145
csg-network:
117146
driver: bridge

0 commit comments

Comments
 (0)