fix: correct Docker config mount path to /data and improve error message (#44)

This commit is contained in:
zyberwoof 2026-09-16 15:25:09 -04:00 • committed by GitHub
parent c1133ee801
commit 914f7997fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View file

@ -99,7 +99,7 @@ docker run -d \
-e OPEN_WEBUI_API_KEY=sk-... \
-e OIKB_API_KEY=your-daemon-key \
-e LOG_FORMAT=json \
-v ./.oikb.yaml:/app/.oikb.yaml:ro \
-v ./.oikb.yaml:/data/.oikb.yaml:ro \
-p 8080:8080 \
ghcr.io/open-webui/oikb:latest daemon
```
@ -121,7 +121,7 @@ services:
- OIKB_API_KEY=${OIKB_API_KEY}
- LOG_FORMAT=json
volumes:
- ./.oikb.yaml:/app/.oikb.yaml:ro
- ./.oikb.yaml:/data/.oikb.yaml:ro
command: daemon
ports:
- "8080:8080"

View file

@ -15,7 +15,7 @@ services:
- OIKB_API_KEY=${OIKB_API_KEY}
- LOG_FORMAT=json
volumes:
- ./.oikb.yaml:/app/.oikb.yaml:ro
- ./.oikb.yaml:/data/.oikb.yaml:ro
command: daemon
ports:
- "8080:8080"

View file

@ -1047,7 +1047,7 @@ def daemon(port: int, no_server: bool, config_file: str | None, log_format: str
entries = _load_oikb_yaml()
if not entries:
click.echo(click.style("No sync entries found. Create a .oikb.yaml file.", fg="red"), err=True)
click.echo(click.style("No sync entries found. Create a .oikb.yaml file at {yaml_path}.", fg="red"), err=True)
sys.exit(1)
# Validate entries.