Files
livekit-3d/deploy/spatial/compose.yaml

47 lines
1.9 KiB
YAML

name: ${SPATIAL_DEPLOYMENT_ID:-sverse-spatial}
services:
livekit:
image: ${SPATIAL_IMAGE:-sverse/livekit-spatial:local}
platform: linux/amd64
build:
context: ../..
dockerfile: deploy/spatial/Dockerfile
# Linux host: no port remapping. Each location uses a distinct PORT_BASE.
network_mode: host
init: true
restart: unless-stopped
stop_grace_period: 2m
read_only: true
tmpfs:
- /run/spatial:uid=10001,gid=10001,mode=0700,size=4m
cap_drop: [ALL]
security_opt: [no-new-privileges:true]
cpus: ${SPATIAL_CPUS:-2}
mem_limit: ${SPATIAL_MEMORY:-1g}
logging:
driver: json-file
options:
max-size: 10m
max-file: "3"
environment:
LIVEKIT_API_KEY: ${LIVEKIT_API_KEY:?Set LIVEKIT_API_KEY}
LIVEKIT_API_SECRET: ${LIVEKIT_API_SECRET:?Set LIVEKIT_API_SECRET}
SPATIAL_LOCATION_ID: ${SPATIAL_LOCATION_ID:-local-location}
SPATIAL_NODE_IP: ${SPATIAL_NODE_IP:?Set reachable SPATIAL_NODE_IP}
SPATIAL_BIND_IP: ${SPATIAL_BIND_IP:-127.0.0.1}
SPATIAL_PORT_BASE: ${SPATIAL_PORT_BASE:-7880}
SPATIAL_ROOMS: ${SPATIAL_ROOMS-spatial-main}
SPATIAL_EMPTY_TIMEOUT: ${SPATIAL_EMPTY_TIMEOUT:-300}
SPATIAL_ROOM_PREFIX: ${SPATIAL_ROOM_PREFIX:-spatial-}
SPATIAL_MAX_PARTICIPANTS: ${SPATIAL_MAX_PARTICIPANTS:-32}
SPATIAL_NEAR_DISTANCE: ${SPATIAL_NEAR_DISTANCE:-1}
SPATIAL_MAX_DISTANCE: ${SPATIAL_MAX_DISTANCE:-20}
SPATIAL_BITRATE: ${SPATIAL_BITRATE:-64000}
SPATIAL_HRTF: ${SPATIAL_HRTF:-true}
SPATIAL_HRTF_INTERPOLATION: ${SPATIAL_HRTF_INTERPOLATION:-bilinear}
SPATIAL_OCCLUSION: ${SPATIAL_OCCLUSION:-true}
SPATIAL_MAX_OBSTACLES: ${SPATIAL_MAX_OBSTACLES:-64}
SPATIAL_ADAPTIVE: ${SPATIAL_ADAPTIVE:-true}
SPATIAL_POSE_INTERVAL_MS: ${SPATIAL_POSE_INTERVAL_MS:-50}
SPATIAL_DEBUG_STATS: ${SPATIAL_DEBUG_STATS:-true}