Skip to content

Commit 2373f2c

Browse files
committed
fix(open-webui): ollama connection
1 parent 44b7bfe commit 2373f2c

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ Project N.O.M.A.D. can be installed on any Debian-based operating system (we rec
99

1010
```bash
1111
curl -fsSL https://raw.githubusercontent.com/Crosstalk-Solutions/project-nomad/refs/heads/master/install/install_nomad.sh -o install_nomad.sh
12+
```
1213

14+
```bash
1315
sudo bash install_nomad.sh
1416
```
1517

admin/app/services/docker_service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export class DockerService {
102102
WorkingDir: containerConfig?.WorkingDir || undefined,
103103
ExposedPorts: containerConfig?.ExposedPorts || undefined,
104104
...(service.container_command ? { Cmd: service.container_command.split(' ') } : {}),
105-
...(service.service_name === 'open-webui' ? { Env: ['WEBUI_AUTH=False'] } : {}), // Special case for Open WebUI to disable authentication
105+
...(service.service_name === 'open-webui' ? { Env: ['WEBUI_AUTH=False', 'PORT=3000', 'OLLAMA_BASE_URL=http://127.0.0.1:11434'] } : {}), // Special case for Open WebUI
106106
});
107107

108108
this._broadcastAndLog(service.service_name, 'created', `Docker container for service ${service.service_name} created successfully.`);

admin/database/seeders/service_seeder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default class ServiceSeeder extends BaseSeeder {
3838
service_name: 'open-webui',
3939
container_image: 'ghcr.io/open-webui/open-webui:main',
4040
container_command: null,
41-
container_config: "{\"HostConfig\":{\"Env\":[\"WEBUI_AUTH=False\"],\"Binds\":[\"/opt/project-nomad/storage/open-webui:/app/backend/data\"],\"PortBindings\": {\"8080/tcp\": [{\"HostPort\": \"3000\"}]}},\"ExposedPorts\":{\"8080/tcp\": {}}}",
41+
container_config: "{\"HostConfig\":{\"NetworkMode\":\"host\",\"Binds\":[\"/opt/project-nomad/storage/open-webui:/app/backend/data\"]}}",
4242
ui_location: '3000',
4343
installed: false,
4444
is_dependency_service: false,

install/management_compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
22
admin:
3-
image: ghcr.io/crosstalk-solutions/project-nomad-admin:1.0.0
3+
image: ghcr.io/crosstalk-solutions/project-nomad-admin:latest
44
pull_policy: always
55
container_name: nomad_admin
66
restart: unless-stopped

0 commit comments

Comments
 (0)