version: '3.8'

services:
  webrtc-app:
    build: .
    ports:
      - "3000:3000"
    volumes:
      - ./videos:/app/videos
    restart: unless-stopped
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:3000"]
      interval: 30s
      timeout: 10s
      retries: 3
      start_period: 60s
    networks:
      - webrtc-network

networks:
  webrtc-network:
    driver: bridge