Skip to content

Commit

Permalink
Add livekit-server as an optional service under conference profil…
Browse files Browse the repository at this point in the history
…e in `docker-compose.standalone.yml`
  • Loading branch information
JamesChenX committed Jun 8, 2024
1 parent 23d7e8b commit d32659a
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/test-docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ jobs:
docker build -t "ghcr.io/turms-im/turms-gateway:latest" -f turms-gateway/Dockerfile .
docker build -t "ghcr.io/turms-im/turms-service:latest" -f turms-service/Dockerfile .
ENV=prod docker compose -f docker-compose.standalone.yml up -d
export COMPOSE_PROFILES="conference,elasticsearch,storage"
export ENV=prod
docker compose -f docker-compose.standalone.yml up -d
sleep 10
RETRY=0
Expand Down
26 changes: 24 additions & 2 deletions docker-compose.standalone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,27 @@ services:
retries: 10
start_period: 1m

# LiveKit
livekit:
image: livekit/livekit-server:v1.6.1
command: --config /etc/livekit.yaml
ports:
- "7880:7880/tcp"
- "7881:7881/tcp"
- "7882:7882/udp"
profiles:
- conference
depends_on:
- redis
healthcheck:
# language=sh
test: wget --no-verbose --spider --tries=1 http://localhost:7880 || exit 1
interval: 10s
timeout: 5s
retries: 5
# volumes:
# - ./livekit/livekit.yaml:/etc/livekit.yaml

# Rasa
rasa:
image: rasa/rasa:3.6.19-full
Expand Down Expand Up @@ -356,8 +377,9 @@ services:
-Dturms.service.redis.user-id-blocklist.uri=redis://redis:6379
# -Dturms.plugin.network.plugins[0].url=https://github.com/turms-im/turms/releases/download/v0.10.0-SNAPSHOT/turms-plugin-antispam-0.10.0-SNAPSHOT.jar
# -Dturms.plugin.network.plugins[1].url=https://github.com/turms-im/turms/releases/download/v0.10.0-SNAPSHOT/turms-plugin-minio-0.10.0-SNAPSHOT.jar
# -Dturms.plugin.network.plugins[2].url=https://github.com/turms-im/turms/releases/download/v0.10.0-SNAPSHOT/turms-plugin-rasa-0.10.0-SNAPSHOT.jar
# -Dturms.plugin.network.plugins[1].url=https://github.com/turms-im/turms/releases/download/v0.10.0-SNAPSHOT/turms-plugin-livekit-0.10.0-SNAPSHOT.jar
# -Dturms.plugin.network.plugins[2].url=https://github.com/turms-im/turms/releases/download/v0.10.0-SNAPSHOT/turms-plugin-minio-0.10.0-SNAPSHOT.jar
# -Dturms.plugin.network.plugins[3].url=https://github.com/turms-im/turms/releases/download/v0.10.0-SNAPSHOT/turms-plugin-rasa-0.10.0-SNAPSHOT.jar
mem_limit: 2g
healthcheck:
test: "curl --fail --silent --user turms:turms turms-service:8510/health | grep UP || exit 1"
Expand Down

0 comments on commit d32659a

Please sign in to comment.