Add Docker Compose deployment
compose.yaml runs playlistd with a Postgres database. Settings come from .env (see .env.example), and Postgres must be healthy before playlistd starts. The Dockerfile builds the web UI with Node and the server with Rust, then copies both into a Debian slim image that runs as an unprivileged user. It also installs the latest yt-dlp (with its YouTube scripts) and Deno, the JavaScript runtime yt-dlp needs for YouTube. playlistd's port is only published on 127.0.0.1 by default, since it has no login. The image can't reach a database during the build, so the SQL query data from `cargo sqlx prepare` is now committed in .sqlx/. Builds with DATABASE_URL set still check queries against that database. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018opPJMJjLWr4RqdG6vuK6p
This commit is contained in:
42 files changed
+1633
No files matched your search
@@ -0,0 +1,24 @@
|
||||
# Settings for compose.yaml. Copy this file to .env and fill it in.
|
||||
|
||||
# Your Subsonic (e.g. Navidrome) server's API. For a server running on the Docker host, use
|
||||
# http://host.docker.internal:4533/rest
|
||||
SUBSONIC_BASE=http://host.docker.internal:4533/rest
|
||||
SUBSONIC_USERNAME=
|
||||
SUBSONIC_PASSWORD=
|
||||
|
||||
# Password for playlistd's own database. Use letters and digits only, as it's put in a URL.
|
||||
POSTGRES_PASSWORD=
|
||||
|
||||
# Optional: your Listenbrainz user token (listenbrainz.org/settings), to find new songs for each
|
||||
# genre mix with LB Radio
|
||||
LISTENBRAINZ_TOKEN=
|
||||
|
||||
# Where to serve playlistd. It has no login, so it only listens on this machine by default; set
|
||||
# PLAYLISTD_BIND=0.0.0.0 to make it reachable from your network.
|
||||
PLAYLISTD_BIND=127.0.0.1
|
||||
PLAYLISTD_PORT=8000
|
||||
|
||||
# How often to update playlists, in seconds
|
||||
DAEMON_INTERVAL=240
|
||||
# error, warn, info, debug or trace
|
||||
LOG_LEVEL=info
|
||||
Reference in new issue
Block a user