Skip to content

Commit

Permalink
Adding healthcheck for Mopidy container
Browse files Browse the repository at this point in the history
jaedb committed Dec 2, 2023

Verified

This commit was signed with the committer’s verified signature.
knst Konstantin Akimov
1 parent 12a60b9 commit 050e232
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docker-compose.example.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 050e232

Please sign in to comment.