1 Star 1 Fork 2

河流/label-studio

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
docker-compose.yml 2.22 KB
一键复制 编辑 原始数据 按行查看 历史
version: "3.3"
services:
nginx:
image: nginx:1.21
ports:
- "8080:80"
- "8081:443"
depends_on:
- app
environment:
- LABEL_STUDIO_HOST=${LABEL_STUDIO_HOST:-}
- NGINX_FILE=${NGINX_FILE:-default.conf}
# Optional: Specify SSL termination certificate & key
# Just drop your cert.pem and cert.key into folder 'deploy/nginx/certs'
# - NGINX_SSL_CERT=/certs/cert.pem
# - NGINX_SSL_CERT_KEY=/certs/cert.key
volumes:
# keep in sync with deploy/docker-entrypoint.d/30-copy-static-data.sh
- source: static
target: /label-studio/label_studio
type: volume
volume:
nocopy: true
- ./mydata:/label-studio/data:rw
- ./deploy/nginx/${NGINX_FILE:-default.conf}:/etc/nginx/templates/${NGINX_FILE:-default.conf}.template
- ./deploy/nginx/scripts:/docker-entrypoint.d/label-studio
- ./deploy/nginx/certs:/certs:ro
command: nginx -g "daemon off;"
app:
stdin_open: true
tty: true
build: .
image: heartexlabs/label-studio:latest
expose:
- "8080"
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:-}
- LABEL_STUDIO_COPY_STATIC_DATA=true
volumes:
- ./mydata:/label-studio/data:rw
# keep in sync with deploy/docker-entrypoint.d/30-copy-static-data.sh
- source: static
target: /label-studio/static_volume
type: volume
volume:
nocopy: true
db:
image: postgres:11.5
hostname: db
restart: always
# Optional: Enable TLS on PostgreSQL
# Just drop your server.crt and server.key into folder 'deploy/pgsql/certs'
# NOTE: Both files must have permissions u=rw (0600) or less
# command: >
# -c ssl=on
# -c ssl_cert_file=/var/lib/postgresql/certs/server.crt
# -c ssl_key_file=/var/lib/postgresql/certs/server.key
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
volumes:
- ${POSTGRES_DATA_DIR:-./postgres-data}:/var/lib/postgresql/data
- ./deploy/pgsql/certs:/var/lib/postgresql/certs:ro
volumes:
static: {}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/lijiacai/label-studio.git
git@gitee.com:lijiacai/label-studio.git
lijiacai
label-studio
label-studio
master

搜索帮助