Fix IPC
All checks were successful
Build and Publish college-bot-v2 / build_and_publish (push) Successful in 14s

This commit is contained in:
Nexus 2024-06-05 01:23:39 +01:00
parent 4ccc1a6c3d
commit 9b6b3e9027
Signed by: nex
GPG key ID: 0FA334385D0B689F
2 changed files with 4 additions and 4 deletions

View file

@ -9,7 +9,7 @@ services:
- ./jimmy.log:/app/jimmy.log
- /dev/dri:/dev/dri
- jimmy-data:/app/data
- ./ipc:/tmp/college-bot-ipc
- ./ipc/:/tmp/ipc/
extra_hosts:
- host.docker.internal:host-gateway
depends_on:
@ -19,10 +19,10 @@ services:
image: git.i-am.nexus/nex/college-bot:latest
restart: unless-stopped
volumes:
- ./ipc:/tmp/college-bot-ipc
- ./ipc/:/tmp/ipc/
depends_on:
- jimmy
command: ["python", "server.py"]
command: ["/app/venv/bin/uvicorn", "--host", "0.0.0.0", "--port", "1111", "server:app"]
ollama:
image: ollama/ollama:latest
container_name: ollama

View file

@ -12,7 +12,7 @@ from fastapi.responses import JSONResponse
from fastapi.security import HTTPBasic, HTTPBasicCredentials
from pydantic import BaseModel, Field, ValidationError
FIFO = "/tmp/college-bot-ipc"
FIFO = "/tmp/ipc/ipc.socket"
JSON: typing.Union[
str, int, float, bool, None, typing.Dict[str, "JSON"], typing.List["JSON"]
] = typing.Union[