mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2026-04-24 22:25:19 +00:00
fix: standalone GPU service connectivity with host network mode
Server runs with network_mode: host and can't resolve Docker service names. Publish cpu port as 8100 on host, point server at localhost:8100. Worker stays on bridge network using cpu:8000. Add dummy TRANSCRIPT_MODAL_API_KEY since OpenAI SDK requires it even for local endpoints.
This commit is contained in:
@@ -63,14 +63,16 @@ services:
|
|||||||
server:
|
server:
|
||||||
environment:
|
environment:
|
||||||
TRANSCRIPT_BACKEND: modal
|
TRANSCRIPT_BACKEND: modal
|
||||||
TRANSCRIPT_URL: http://cpu:8000
|
TRANSCRIPT_URL: http://localhost:8100
|
||||||
|
TRANSCRIPT_MODAL_API_KEY: local
|
||||||
DIARIZATION_BACKEND: modal
|
DIARIZATION_BACKEND: modal
|
||||||
DIARIZATION_URL: http://cpu:8000
|
DIARIZATION_URL: http://localhost:8100
|
||||||
|
|
||||||
worker:
|
worker:
|
||||||
environment:
|
environment:
|
||||||
TRANSCRIPT_BACKEND: modal
|
TRANSCRIPT_BACKEND: modal
|
||||||
TRANSCRIPT_URL: http://cpu:8000
|
TRANSCRIPT_URL: http://cpu:8000
|
||||||
|
TRANSCRIPT_MODAL_API_KEY: local
|
||||||
DIARIZATION_BACKEND: modal
|
DIARIZATION_BACKEND: modal
|
||||||
DIARIZATION_URL: http://cpu:8000
|
DIARIZATION_URL: http://cpu:8000
|
||||||
|
|
||||||
@@ -78,6 +80,8 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: ./gpu/self_hosted
|
context: ./gpu/self_hosted
|
||||||
dockerfile: Dockerfile.cpu
|
dockerfile: Dockerfile.cpu
|
||||||
|
ports:
|
||||||
|
- "8100:8000"
|
||||||
volumes:
|
volumes:
|
||||||
- gpu_cache:/root/.cache
|
- gpu_cache:/root/.cache
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|||||||
Reference in New Issue
Block a user