TXK57 36 Posted June 26, 2022 Posted June 26, 2022 (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 June 26, 2022 by TKX57 had double curl when I copied
Luke 40082 Posted June 26, 2022 Posted June 26, 2022 Hi, I guess it's always possible, but that sort of thing can lead to hiding problems that would never get solved.
Kyrunner 72 Posted December 29, 2024 Posted December 29, 2024 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
darkassassin07 619 Posted January 26 Posted January 26 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. 1
Q-Droid 881 Posted January 26 Posted January 26 1 hour ago, Relocate0604 said: Hello, Did anyone found a workaround? Workaround to what?
Q-Droid 881 Posted January 26 Posted January 26 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 1
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now