Skip to content

Commit 5898e0a

Browse files
committed
Merge branch 'next' of https://github.com/coollabsio/coolify into next
2 parents 4f4743c + 3b3362d commit 5898e0a

File tree

8 files changed

+116
-39
lines changed

8 files changed

+116
-39
lines changed

app/Models/Service.php

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,31 @@ public function extraFields()
288288
continue;
289289
}
290290
switch ($image) {
291+
case $image->contains('label-studio'):
292+
$data = collect([]);
293+
$username = $this->environment_variables()->where('key', 'LABEL_STUDIO_USERNAME')->first();
294+
$password = $this->environment_variables()->where('key', 'SERVICE_PASSWORD_LABELSTUDIO')->first();
295+
if ($username) {
296+
$data = $data->merge([
297+
'Username' => [
298+
'key' => 'LABEL_STUDIO_USERNAME',
299+
'value' => data_get($username, 'value'),
300+
'rules' => 'required',
301+
],
302+
]);
303+
}
304+
if ($password) {
305+
$data = $data->merge([
306+
'Password' => [
307+
'key' => 'LABEL_STUDIO_PASSWORD',
308+
'value' => data_get($password, 'value'),
309+
'rules' => 'required',
310+
'isPassword' => true,
311+
],
312+
]);
313+
}
314+
$fields->put('Label Studio', $data->toArray());
315+
break;
291316
case $image->contains('litellm'):
292317
$data = collect([]);
293318
$username = $this->environment_variables()->where('key', 'SERVICE_USER_UI')->first();

public/svgs/ollama.svg

Lines changed: 14 additions & 0 deletions
Loading

templates/compose/labelstudio.yaml

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,40 +7,41 @@
77
services:
88
labelstudio:
99
image: heartexlabs/label-studio:latest
10-
restart: always
1110
depends_on:
1211
postgres:
1312
condition: service_healthy
1413
environment:
1514
- SERVICE_FQDN_LABELSTUDIO_8080
16-
- DJANGO_DB=default
15+
- DJANGO_DB=${DJANGO_DB:-default}
1716
- POSTGRE_NAME=${POSTGRES_DB:-labelstudio}
1817
- POSTGRE_USER=${SERVICE_USER_POSTGRES}
1918
- POSTGRE_PASSWORD=${SERVICE_PASSWORD_POSTGRES}
2019
- POSTGRE_PORT=5432
2120
- POSTGRE_HOST=postgres
22-
- LABEL_STUDIO_HOST=${LABEL_STUDIO_HOST:-0.0.0.0}
23-
- SSRF_PROTECTION_ENABLED=true
21+
- LABEL_STUDIO_HOST=${SERVICE_FQDN_LABELSTUDIO}
22+
- SSRF_PROTECTION_ENABLED=${SSRF_PROTECTION_ENABLED:-true}
2423
- LABEL_STUDIO_DISABLE_SIGNUP_WITHOUT_LINK=${LABEL_STUDIO_DISABLE_SIGNUP_WITHOUT_LINK:-true}
2524
- DATA_UPLOAD_MAX_NUMBER_FILES=${DATA_UPLOAD_MAX_NUMBER_FILES:-10000}
25+
- LABEL_STUDIO_USERNAME=${LABEL_STUDIO_USERNAME:[email protected]}
26+
- LABEL_STUDIO_PASSWORD=${SERVICE_PASSWORD_LABELSTUDIO}
27+
- LABEL_STUDIO_DISABLE_SIGNUP_WITHOUT_LINK=${LABEL_STUDIO_DISABLE_SIGNUP_WITHOUT_LINK:-true}
2628
volumes:
27-
- labelstudio_data:/label-studio/data:rw
28-
29+
- labelstudio-data:/label-studio/data
30+
healthcheck:
31+
test: ["CMD-SHELL", "curl -f http://localhost:8080/health || exit 1"]
32+
interval: 5s
33+
timeout: 20s
34+
retries: 3
2935
postgres:
3036
image: postgres:16-alpine
31-
restart: always
3237
environment:
3338
- POSTGRES_USER=${SERVICE_USER_POSTGRES}
3439
- POSTGRES_PASSWORD=${SERVICE_PASSWORD_POSTGRES}
3540
- POSTGRES_DB=${POSTGRES_DB:-labelstudio}
3641
volumes:
37-
- pg_data:/var/lib/postgresql/data
42+
- pg-data:/var/lib/postgresql/data
3843
healthcheck:
39-
test: ["CMD-SHELL", "pg_isready -h localhost -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
44+
test: ["CMD-SHELL", "pg_isready -h localhost -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
4045
interval: 5s
41-
timeout: 5s
46+
timeout: 20s
4247
retries: 3
43-
44-
volumes:
45-
pg_data:
46-
labelstudio_data:
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# documentation: https://docs.openwebui.com
2+
# slogan: Ollama with Open Web UI integrates AI model deployment with a user-friendly interface.
3+
# tags: ollama,ai,models,deployment,open-web-ui,integration
4+
# logo: svgs/ollama.svg
5+
6+
version: "3.9"
7+
8+
services:
9+
ollama-api:
10+
container_name: ollama
11+
image: "ollama/ollama:latest"
12+
volumes:
13+
- "ollama:/root/.ollama"
14+
ports:
15+
- 11434:11434
16+
tty: true
17+
restart: unless-stopped
18+
pull_policy: always
19+
healthcheck:
20+
test: ["CMD", "ollama", "list"]
21+
interval: 30s
22+
timeout: 10s
23+
retries: 3
24+
25+
open-webui:
26+
container_name: open-webui
27+
image: "ghcr.io/open-webui/open-webui:main"
28+
depends_on:
29+
- ollama-api
30+
environment:
31+
- "OLLAMA_API_BASE_URL=http://127.0.0.1:11434"
32+
- SERVICE_FQDN_OLLAMA_8080
33+
restart: unless-stopped
34+
healthcheck:
35+
test:
36+
- CMD
37+
- curl
38+
- "-f"
39+
- "http://127.0.0.1:8080"
40+
interval: 30s
41+
timeout: 10s
42+
retries: 3
43+
44+
volumes:
45+
ollama: {}

templates/compose/rabbitmq.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ services:
1616
- ${PORT}:5672
1717
healthcheck:
1818
test: rabbitmq-diagnostics -q ping
19-
interval: 30s
19+
interval: 5s
2020
timeout: 30s
21-
retries: 3
21+
retries: 10

templates/compose/unstructured.yaml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
# logo: svgs/unstructured.png
55
# port: 8000
66

7-
version: "3"
8-
97
services:
108
unstructured:
119
image: "downloads.unstructured.io/unstructured-io/unstructured-api:latest"
@@ -17,8 +15,7 @@ services:
1715
- CMD
1816
- wget
1917
- "-qO-"
20-
- "--spider"
2118
- "http://0.0.0.0:8000/healthcheck"
22-
interval: 15s
23-
timeout: 15s
24-
retries: 3
19+
interval: 5s
20+
timeout: 30s
21+
retries: 10

0 commit comments

Comments
 (0)