Created
October 25, 2024 09:53
-
-
Save indiejoseph/eaf160701c8593f7f150e8294fb7bb2d to your computer and use it in GitHub Desktop.
Label Studio
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.9" | |
services: | |
app: | |
image: heartexlabs/label-studio:latest | |
restart: unless-stopped | |
depends_on: | |
- db | |
expose: | |
- "8080" | |
environment: | |
- DJANGO_DB=default | |
- POSTGRE_NAME=postgres | |
- POSTGRE_USER=postgres | |
- POSTGRE_PASSWORD= | |
- POSTGRE_PORT=5432 | |
- POSTGRE_HOST=db | |
- LABEL_STUDIO_HOST=[YOUR HOST] | |
- LABEL_STUDIO_DISABLE_SIGNUP_WITHOUT_LINK=true | |
- LABEL_STUDIO_USERNAME=[YOUR USERNAME] | |
- LABEL_STUDIO_PASSWORD=[YOUR PASSWORD] | |
- JSON_LOG=1 | |
volumes: | |
- ./mydata:/label-studio/data:rw | |
db: | |
image: postgres:11.5 | |
hostname: db | |
restart: unless-stopped | |
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment