Update labelstudio.yaml

This commit is contained in:
peaklabs-dev
2024-10-07 10:36:08 +02:00
parent 053ee63606
commit af09472679

View File

@@ -4,15 +4,9 @@
# logo: svgs/labelstudio.png # logo: svgs/labelstudio.png
# port: 8080 # port: 8080
version: "3"
volumes:
pg_data: null
labelstudio_data: null
services: services:
labelstudio: labelstudio:
image: "heartexlabs/label-studio:latest" image: heartexlabs/label-studio:latest
restart: always restart: always
depends_on: depends_on:
postgres: postgres:
@@ -31,6 +25,7 @@ services:
- DATA_UPLOAD_MAX_NUMBER_FILES=${DATA_UPLOAD_MAX_NUMBER_FILES:-10000} - DATA_UPLOAD_MAX_NUMBER_FILES=${DATA_UPLOAD_MAX_NUMBER_FILES:-10000}
volumes: volumes:
- labelstudio_data:/label-studio/data:rw - labelstudio_data:/label-studio/data:rw
postgres: postgres:
image: postgres:16-alpine image: postgres:16-alpine
restart: always restart: always
@@ -41,9 +36,11 @@ services:
volumes: volumes:
- pg_data:/var/lib/postgresql/data - pg_data:/var/lib/postgresql/data
healthcheck: healthcheck:
test: test: ["CMD-SHELL", "pg_isready -h localhost -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
- CMD-SHELL
- "pg_isready -h localhost -U $${POSTGRES_USER} -d $${POSTGRES_DB}"
interval: 5s interval: 5s
timeout: 5s timeout: 5s
retries: 3 retries: 3
volumes:
pg_data:
labelstudio_data: