services:
  webrtc-tool:
    build:
      context: .
    ports:
      - "8080:8080"
    volumes:
      # Bind-mount a host directory the entrypoint will drop index.html into.
      # Point your own web server (nginx/caddy/python -m http.server / etc.)
      # at this directory to serve the page. Anything else placed here is
      # preserved; only index.html is overwritten on container start.
      - ./static:/static
    healthcheck:
      test: ["CMD-SHELL", "curl --show-error --silent http://localhost:8080/health -o /dev/null"]
      interval: 30s
      timeout: 5s
      retries: 3
      start_period: 5s
