Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

Update labelstudio.yaml

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