-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
44 lines (42 loc) · 1.59 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
version: "3.9"
services:
nginx:
build: ./label-studio
image: heartexlabs/label-studio:1.8.0
restart: unless-stopped
ports:
# FIXME: wait to fix incorrect static file redirection in docs/api path
- "8085:8085"
- "8086:8086"
# environment:
# # disable the modification of location from 10-configure-nginx.sh script
# # I configure it on setup time.
# - LABEL_STUDIO_HOST=${LABEL_STUDIO_HOST}
# # Optional: Specify SSL termination certificate & key
# # Just drop your cert.pem and cert.key into folder 'label-studio/deploy/nginx/certs'
# - NGINX_SSL_CERT=/certs/cert.pem
# - NGINX_SSL_CERT_KEY=/certs/cert.key
volumes:
- ./label-studio/deploy/nginx/certs:/certs:ro
# if you'd like to modify it, it is in the templates folder.
- ./deploy/nginx.conf:/etc/nginx/nginx.conf
command: nginx
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 'label-studio/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:/var/lib/postgresql/data
- ./label-studio/deploy/pgsql/certs:/var/lib/postgresql/certs:ro
- ./deploy/init-apps-db.sql:/docker-entrypoint-initdb.d/init-apps-db.sql:ro
volumes:
postgres-data: