Skip to content

Commit

Permalink
Upgrading docker compose with healtcheck
Browse files Browse the repository at this point in the history
- Snapserver must wait until Mopidy is up and running before starting
- This ensures mpd accepts snapserver connection for snapserver controls
  • Loading branch information
jaedb committed Oct 27, 2023
1 parent b48ccd9 commit 12a60b9
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions docker-compose.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@ version: "3"
services:
snapserver:
image: jaedb/snapserver
depends_on:
mopidy:
condition: service_healthy
ports:
- 1704:1704
- 1705:1705
- 1780:1780
- 1704
- 1705
- 1780
volumes:
- /tmp/snapserver:/tmp
- ./docker/snapserver/snapserver.conf:/etc/snapserver.conf
Expand All @@ -16,11 +19,9 @@ services:
- PIP_PACKAGES=Mopidy-YTMusic Mopidy-Tidal Mopidy-SoundCloud Mopidy-MusicBox-Webclient
build:
context: .
depends_on:
- snapserver
ports:
- 6600:6600
- 6680:6680
- 6600
- 6680
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 12a60b9

Please sign in to comment.