Add docker setup and switch voice chat backend to use livekit

This commit is contained in:
2026-03-11 16:06:41 +01:00
parent b051a0a851
commit f54fff5fb5
24 changed files with 1362 additions and 232 deletions

37
docker-compose.yml Normal file
View File

@@ -0,0 +1,37 @@
services:
livekit:
image: livekit/livekit-server:latest
restart: unless-stopped
command: --config /etc/livekit.yaml
ports:
- "7880:7880"
- "7881:7881"
- "7882:7882/udp"
volumes:
# Copy livekit.example.yaml to livekit.yaml and set matching keys in .env before running.
- ./livekit.yaml:/etc/livekit.yaml:ro
server:
build: ./server
restart: unless-stopped
environment:
- CHGRID_AUTH_SECRET=${CHGRID_AUTH_SECRET}
- CHGRID_HOST_ORIGIN=${CHGRID_HOST_ORIGIN:-http://localhost}
- LIVEKIT_API_KEY=${LIVEKIT_API_KEY:-devkey}
- LIVEKIT_API_SECRET=${LIVEKIT_API_SECRET:-secret}
- LIVEKIT_URL=${LIVEKIT_URL:-ws://localhost:7880}
volumes:
- server-runtime:/app/runtime
depends_on:
- livekit
client:
build: ./client
restart: unless-stopped
ports:
- "127.0.0.1:4474:80"
depends_on:
- server
volumes:
server-runtime: