Add docker setup and switch voice chat backend to use livekit
This commit is contained in:
37
docker-compose.yml
Normal file
37
docker-compose.yml
Normal 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:
|
||||
Reference in New Issue
Block a user