server: use redis pubsub for interprocess websocket communication

This commit is contained in:
2023-10-25 16:56:43 +02:00
committed by Mathieu Virbel
parent 8bebb2a769
commit 00c06b7971
6 changed files with 183 additions and 52 deletions

View File

@@ -1,15 +1,19 @@
version: "3.9"
services:
server:
build:
context: .
# server:
# build:
# context: .
# ports:
# - 1250:1250
# environment:
# LLM_URL: "${LLM_URL}"
# MIN_TRANSCRIPT_LENGTH: "${MIN_TRANSCRIPT_LENGTH}"
# volumes:
# - model-cache:/root/.cache
redis:
image: redis:7.2
ports:
- 1250:1250
environment:
LLM_URL: "${LLM_URL}"
MIN_TRANSCRIPT_LENGTH: "${MIN_TRANSCRIPT_LENGTH}"
volumes:
- model-cache:/root/.cache
- 6379:6379
volumes:
model-cache: