From 050e2323edb66ca4549a283e5c91c0fb659995fa Mon Sep 17 00:00:00 2001 From: James Barnsley Date: Sat, 2 Dec 2023 20:03:08 +1300 Subject: [PATCH] Adding healthcheck for Mopidy container --- docker-compose.example.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docker-compose.example.yml b/docker-compose.example.yml index 8568d287..c85aa7a4 100755 --- a/docker-compose.example.yml +++ b/docker-compose.example.yml @@ -17,11 +17,13 @@ services: image: jaedb/iris environment: - PIP_PACKAGES=Mopidy-YTMusic Mopidy-Tidal Mopidy-SoundCloud Mopidy-MusicBox-Webclient - build: - context: . ports: - 6600 - 6680 + healthcheck: + test: curl -f http://localhost:6680/iris/http/get_config || exit 1 + timeout: 5s + retries: 5 volumes: # - ./mopidy/iris:/iris/mopidy/iris # To use a locally-built UI - ./docker/mopidy/iris:/var/lib/mopidy/iris # Iris-specific storage