streamer icon indicating copy to clipboard operation
streamer copied to clipboard

added curl command to aid with healthchecks

Open skalavala opened this issue 1 year ago • 0 comments

when running this using docker-compose, we could automatically do health check if there is a curl command available inside the container.

  streamer:
    container_name: camera_streamer
    image: gihad/streamer
    restart: always
    environment:
      - PARAMETERS=xxx
    volumes:
      - /tmp/stream:/tmp/stream
    ports:
      - 8080:80
    healthcheck:
      test:
        [
          "CMD",
          "curl",
          "-f",
          "http://192.168.xxx.xxx:8080/mycamerafeed.m3u8"
        ]
      interval: 1m
      timeout: 10s
      retries: 3

skalavala avatar Jan 31 '23 16:01 skalavala