nichobi / sponsorblockcast

A shell script that skips sponsored YouTube content on all local Chromecasts
GNU General Public License v3.0
348 stars 15 forks source link

Docker-Compose healthcheck #29

Closed LostOnTheLine closed 1 year ago

LostOnTheLine commented 1 year ago

Just a note for a possible healthcheck. I'm not sure how well it does but it will check that go-chromecast is working at the very least

version: '3.6'
services:
  sponsorblockcast:
    image: ghcr.io/nichobi/sponsorblockcast:latest
    network_mode: host
    environment:
      SBCPOLLINTERVAL: 1
      SBCSCANINTERVAL: 300
      SBCCATEGORIES: sponsor
      SBCDIR: /tmp/sponsorblockcast
    cap_add: 
      - NET_ADMIN
    restart: always
    healthcheck:
      test: ["CMD", "go-chromecast", "ls"]
      interval: 60s
      timeout: 10s
      retries: 3

I'm not sure what else to check for but that will verify the basics of the system are working

bruvv commented 1 year ago

Would be better to make a PR 👍 Edit done in: #32

LostOnTheLine commented 1 year ago

Would be better to make a PR 👍 Edit done in: #32

I'm not sure how to do all that, plus I can't get the container to actually do anything, plus I'm not sure it's the best option, just that it will check if the one service is actually running.

bruvv commented 1 year ago

It's merged. Please close this.

LostOnTheLine commented 1 year ago

Would be better to make a PR 👍 Edit done in: #32

I wasn't sure if it was the correct way to do it, so I didn't feel comfortable doing a PR. I was actually never able to get this container to actually function properly so attempting to improve it, when I can't get it to work at all, wasn't something I was comfortable with, I just wanted to share what I thought would work, as I am a big proponent of healtchecks.