version: "3.3"

services:
  # livekit webhook receiver
  tailchat-livekit-webhook-receiver:
    build:
      context: ../
    image: tailchat
    restart: unless-stopped
    env_file: docker-compose.env
    environment:
      LIVEKIT_WEBHOOK_PORT: 3000
    depends_on:
      - mongo
      - redis
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.livekit.rule=PathPrefix(`/livekit/webhook`)"
      - "traefik.http.services.livekit.loadbalancer.server.port=3000"
    networks:
      - internal
    command: node server/dist/plugins/com.msgbyte.livekit/webhook/index.js
