代码拉取完成,页面将自动刷新
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: {}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。