Skip to content

Commit

Permalink
Adding healthcheck for Mopidy container
Browse files Browse the repository at this point in the history
  • Loading branch information
jaedb committed Dec 2, 2023
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
Expand Up @@ -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
Expand Down

0 comments on commit 050e232

Please sign in to comment.