Jump to content

Recommended Posts

Posted (edited)

I prefer using the official docker container. It doesn't seem to support console though. I've tried root and the user that I have setup.support

I'm trying to add a health check on the server with the below config. However, with no console or curl in container seems to be an issue. Thoughts on having health check within container?

    labels:
      autoheal: "true"
    healthcheck:
      test: curl -fsS http://localhost:8096/emby/system/info/public?format=json >/dev/null || exit 1
      start_period: 30s
      timeout: 10s
      interval: 5s
      retries: 3

 

Edited by TKX57
had double curl when I copied
Posted

Hi, I guess it's always possible, but that sort of thing can lead to hiding problems that would never get solved.

Posted

makes sense, thank you

  • 2 years later...
Posted
On 6/27/2022 at 11:13 PM, TXK57 said:

makes sense, thank you

Try This. 

 services:
  emby:
    image: emby/embyserver:beta
    container_name: embyserver
    network_mode: host
    environment:
      UID: 1000
      GID: 1000
      INSTALL_PACKAGES: curl  # Installs curl during startup
    volumes:
      - /share/CACHEDEV1_DATA/Emby/programdata:/config
      - /share:/share
    devices:
      - /dev/dri:/dev/dri
    restart: unless-stopped
    healthcheck:
      test: ["CMD", "curl", "-f", "http://192.168.1.54:8096"]
      interval: 1m30s
      timeout: 10s
      retries: 3
      start_period: 30s

  • 4 weeks later...
Relocate0604
Posted

Hello,

Did anyone found a workaround?

darkassassin07
Posted

https://github.com/louislam/uptime-kuma

 

You've gotta find your own solutions to these problems unfortunately, or you'll be waiting a decade. I use this to monitor all my services, and a few public ones. Sends me email notifications too. 

  • Agree 1
Q-Droid
Posted
1 hour ago, Relocate0604 said:

Hello,

Did anyone found a workaround?

Workaround to what?

Q-Droid
Posted

You should be able to accomplish the same thing using the wget command that is available in the official Emby Docker image.

This command works in the Emby container, replace <port> with your own:

wget -O - http://localhost:<port>/web/index.html

So if you want to use it for the Docker healthcheck this should work:

wget -qO /dev/null -o /dev/null  http://localhost:<port>/web/index.html || exit 1

 

 

 

  • Like 1
Relocate0604
Posted

That worked thank you a lot!!!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...