forked from HumanSignal/label-studio
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
executable file
·78 lines (75 loc) · 2.41 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
version: "3.9"
services:
nginx:
build: .
image: heartexlabs/label-studio:1.12.0-rnd-9rc1f45aa7ee137aa9308c19d9fdf61b356a076d785
restart: unless-stopped
ports:
- "80:8085"
- "8081:8086"
networks:
- label-studio-network
depends_on:
- app
environment:
- LABEL_STUDIO_HOST=${LABEL_STUDIO_HOST:-}
# 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:
- ./mydata:/label-studio/data:rw
- ./deploy/nginx/certs:/certs:ro
# Optional: Override nginx default conf
# - ./deploy/my.conf:/etc/nginx/nginx.conf
command: nginx
app:
stdin_open: true
tty: true
build: .
image: heartexlabs/label-studio:1.12.0-rnd-9rc1f45aa7ee137aa9308c19d9fdf61b356a076d785
restart: unless-stopped
expose:
- "8000"
networks:
- label-studio-network
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:-}
- JSON_LOG=1
- LABEL_STUDIO_DISABLE_SIGNUP_WITHOUT_LINK=true
- LABEL_STUDIO_LOCAL_FILES_SERVING_ENABLED=true
- LABEL_STUDIO_LOCAL_FILES_DOCUMENT_ROOT=/label-studio/files
# - LOG_LEVEL=DEBUG
volumes:
- ./mydata:/label-studio/data:rw # eventually change to S3.
- ${DATA_DIRECTORY_PATH}:/label-studio/files # adjust to your local data path; eventually change to S3.
command: label-studio-uwsgi
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
networks:
- label-studio-network
volumes:
- ${POSTGRES_DATA_DIR:-./postgres-data}:/var/lib/postgresql/data
- ./deploy/pgsql/certs:/var/lib/postgresql/certs:ro
networks:
label-studio-network:
external: true