-
Notifications
You must be signed in to change notification settings - Fork 87
/
Copy pathcompose.yaml
212 lines (200 loc) · 4.55 KB
/
compose.yaml
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
services:
server:
image: luminainc/server:bd382272
platform: linux/amd64
ports:
- "8000:8000"
depends_on:
- postgres
- redis
- minio
env_file:
- .env
deploy:
replicas: 1
restart: always
task:
image: luminainc/task:bd382272
platform: linux/amd64
depends_on:
- postgres
- redis
- minio
env_file:
- .env
deploy:
replicas: 10
restart: always
web:
image: luminainc/web:37ab9ae9
platform: linux/amd64
ports:
- "5173:8000"
env_file:
- .env
deploy:
replicas: 1
restart: always
segmentation:
image: luminainc/segmentation:df6e5375
ports:
- "8001:8000"
deploy:
replicas: 1
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [ gpu ]
volumes:
- /dev/shm:/dev/shm
environment:
- MAX_BATCH_SIZE=4
- BATCH_WAIT_TIME=0.2
- OVERLAP_THRESHOLD=0.025
- SCORE_THRESHOLD=0.2
restart: always
ocr:
image: luminainc/doctr:bbacfb97
platform: linux/amd64
ports:
- "8002:8000"
deploy:
replicas: 1
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [ gpu ]
volumes:
- /dev/shm:/dev/shm
restart: always
postgres:
build:
context: ./docker/postgres
dockerfile: Dockerfile
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 10s
timeout: 5s
retries: 5
deploy:
replicas: 1
adminer:
image: adminer:latest
ports:
- "8082:8080"
depends_on:
- postgres
restart: always
redis:
image: redis:latest
ports:
- "6379:6379"
volumes:
- redis_data:/data
command: redis-server --appendonly yes
healthcheck:
test: [ "CMD", "redis-cli", "ping" ]
interval: 10s
timeout: 5s
retries: 5
deploy:
replicas: 1
minio:
image: minio/minio:latest
ports:
- "9000:9000"
- "9001:9001"
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
volumes:
- minio_data:/data
command: server /data --console-address ":9001"
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:9000/minio/health/live" ]
interval: 30s
timeout: 20s
retries: 1
minio-init:
image: minio/mc
depends_on:
minio:
condition: service_healthy
entrypoint: >
/bin/sh -c "
/usr/bin/mc alias set myminio http://minio:9000 minioadmin minioadmin &&
/usr/bin/mc mb myminio/chunkr --ignore-existing &&
/usr/bin/mc anonymous set public myminio/chunkr
"
keycloak:
image: quay.io/keycloak/keycloak:25.0.2
platform: linux/amd64
ports:
- "8080:8080"
environment:
- KEYCLOAK_ADMIN=admin
- KEYCLOAK_ADMIN_PASSWORD=admin
- KC_PROXY=edge
- KC_DB=postgres
- KC_DB_URL=jdbc:postgresql://postgres:5432/keycloak
- KC_DB_USERNAME=postgres
- KC_DB_PASSWORD=postgres
volumes:
- ./realm-export.json:/opt/keycloak/data/import/realm-export.json
command: [ "start-dev", "--import-realm" ]
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8080/realms/master" ]
interval: 30s
timeout: 10s
retries: 3
depends_on:
- postgres
restart: always
rrq:
image: luminainc/rrq:33cd165
platform: linux/amd64
depends_on:
- redis
ports:
- "8005:8000"
environment:
- REDIS__URL=redis://redis:6379
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8000" ]
interval: 30s
timeout: 10s
retries: 3
deploy:
replicas: 1
restart: always
embeddings:
image: ghcr.io/huggingface/text-embeddings-inference:1.5
platform: linux/amd64
ports:
- "8003:80"
command: [ "--model-id", "BAAI/bge-m3", "--max-client-batch-size", "51", "--max-batch-tokens", "5120", "--payload-limit", "1000000", "--auto-truncate" ]
deploy:
replicas: 1
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [ gpu ]
restart: always
volumes:
postgres_data:
redis_data:
minio_data: