-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml.template
79 lines (72 loc) · 2.21 KB
/
docker-compose.yml.template
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
79
version: "3.3"
networks:
bibbox-default-network:
external: true
services:
§§INSTANCE-labelstudio-nginx:
image: heartexlabs/label-studio:1.9.0 # dockerimage + version
container_name: §§INSTANCE-labelstudio-nginx
restart: unless-stopped
networks:
- bibbox-default-network
links:
- §§INSTANCE-labelstudioapp:app
ports:
- "8080:8085"
- "8081:8086"
depends_on:
- §§INSTANCE-labelstudioapp
environment:
- LABEL_STUDIO_HOST=${LABEL_STUDIO_HOST:-}
volumes:
- ./data/mydata:/label-studio/data:rw
- ./data/deploy/nginx/certs:/certs:ro
command: nginx
proxy:
TYPE: PRIMARY
URLPREFIX: §§INSTANCE
TEMPLATE: default
DISPLAYNAME: 'Label Studio'
§§INSTANCE-labelstudioapp:
stdin_open: true
tty: true
image: heartexlabs/label-studio:1.9.0
container_name: §§INSTANCE-labelstudioapp
restart: unless-stopped
networks:
- bibbox-default-network
expose:
- "8080"
depends_on:
- §§INSTANCE-db
environment:
- DJANGO_DB=default
- POSTGRE_NAME=postgres
- POSTGRE_USER=postgres
- POSTGRE_PASSWORD=§§POSTGRE_PASSWORD
- POSTGRE_PORT=5432
- POSTGRE_HOST=db
- LABEL_STUDIO_HOST=${LABEL_STUDIO_HOST:-}
- JSON_LOG=1
links:
- §§INSTANCE-db:db
volumes:
- ./data/mydata:/label-studio/data:rw
- ./data/deploy/nginx/certs:/certs:ro
command: label-studio-uwsgi
§§INSTANCE-db:
image: postgres:11.5
container_name: §§INSTANCE-db
restart: unless-stopped
user: root
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
- PGDATA=/var/lib/postgresql/data/mydata
- POSTGRES_PASSWORD=§§POSTGRE_PASSWORD
volumes:
- ${POSTGRES_DATA_DIR:-./postgres-data}:/var/lib/postgresql/mydata:z
- ./data/deploy/pgsql/certs:/var/lib/postgresql/certs:ro
networks:
- bibbox-default-network
volumes:
static: {}