Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
240 lines (232 loc) · 12.9 KB
/
Copy pathdocker-compose.yml
File metadata and controls
240 lines (232 loc) · 12.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
# BREAKING CHANGE (v1.3+): Database volume mount changed from /app/database to /app/data
# If upgrading from a previous version, update your docker-compose.yml:
# OLD: - soulsync_database:/app/database
# NEW: - soulsync_database:/app/data
# Your data will be preserved - it's the same volume, just mounted at a different path.
services:
soulsync:
image: boulderbadgedad/soulsync:latest
container_name: soulsync-webui
environment:
# User/Group ID configuration
- PUID=1000
- PGID=1000
- UMASK=022
# Web server configuration
- PYTHONPATH=/app
# Optional: ONLY when your reverse proxy hosts SoulSync under a subpath,
# e.g. https://media.example.com/soulsync/. Leave commented for normal setups.
# Configure the proxy for the same path; see docs/REVERSE_PROXY_SUBPATH.md.
# After changing this setting, recreate the container to apply it.
# - SOULSYNC_URL_BASE=/soulsync
# Optional: Configure through environment variables
- SOULSYNC_CONFIG_PATH=/app/config/config.json
# Set timezone (change to your timezone)
- TZ=America/New_York
# OAuth callback ports. If 8888/8889 conflict with another container (e.g. Gluetun),
# change the port numbers below AND update the matching port mappings in the ports section.
# Then update the redirect URI in SoulSync → Settings → Connections AND in your Spotify/Tidal developer dashboard to match.
- SOULSYNC_SPOTIFY_CALLBACK_PORT=8888
- SOULSYNC_TIDAL_CALLBACK_PORT=8889
ports:
- "8008:8008" # Main web app
- "8888:8888" # Spotify OAuth callback — keep in sync with SOULSYNC_SPOTIFY_CALLBACK_PORT above
- "8889:8889" # Tidal OAuth callback — keep in sync with SOULSYNC_TIDAL_CALLBACK_PORT above
- "8443:8443" # SoulSync Player app (remote streaming). forward this port, or turn on automatic remote access in Settings > Devices
volumes:
# Persistent data volumes
- ./config:/app/config
- ./logs:/app/logs
# Shared INPUT folder — slskd / torrent / usenet drop downloads here, and BOTH
# the music and video sides read from it (Settings → Downloads uses one path).
- ./downloads:/app/downloads
# ─── Music library (OUTPUT) — REQUIRED: uncomment + set your path ────
# The app needs a music library folder — where finished, organised music is
# moved to for Plex / Jellyfin / Navidrome to read. Inside the container it is
# mounted at /app/Transfer. UNCOMMENT the line below, point the host side (left
# of the colon) at your music library, then set Settings → Library → Folders →
# Music Library Folder to /app/Transfer (matches the in-app ./Transfer
# placeholder). Left commented so it never clashes with an /app/Transfer
# mount you already added in a previous setup — if you have one, keep it.
# - ./Transfer:/app/Transfer
# ─── Per-profile libraries (OUTPUT) — optional ──────────────────────────
# A profile the admin switches to "Own library" (Manage Profiles) downloads
# into its own folder and syncs against its own Plex/Jellyfin library. Each
# such folder needs a mount under /app/libraries/<name>; that is the path to
# enter on the profile card, and the path to point the second Plex/Jellyfin
# music library at (on the host side, left of the colon).
# - ./libraries/thomas:/app/libraries/thomas
# ─── Podcast library (OUTPUT) — optional: uncomment + set your path ───
# Downloaded podcast episodes are saved here. UNCOMMENT the line below, point
# the host side (left of the colon) at your podcasts folder, then set
# Settings → Library → Podcasts Folder to /app/podcasts:
# - ./podcasts:/app/podcasts
# ─── Audiobook library (OUTPUT) — optional: uncomment + set your path ───
# Finished audiobooks are filed here as Author/Series/Book folders. UNCOMMENT
# the line below, point the host side (left of the colon) at your audiobook
# folder, then set Settings → Library → Audiobooks Folder to /app/audiobooks.
# Keep this OUT of your music library: a book is a folder of chapter files,
# and a music scanner will happily index it as an album of 300 tracks.
# - ./audiobooks:/app/audiobooks
# An existing collection on another drive: mount it at its own path and add
# it under Settings → Library → Folders → Audiobooks → More audiobook folders.
# - /mnt/drive2/Audiobooks:/app/audiobooks2:rw
# ─── Playlist folders (OUTPUT), optional: uncomment + set your path ───
# "Organize by playlist" builds one folder per playlist here (copies,
# hardlinks or symlinks to your library). The default Playlist Folder is
# /app/Playlists; without a mount it lives in the container and is lost
# when the container is recreated.
# - ./Playlists:/app/Playlists
# ─── Sample Studio folders (OUTPUT) — optional: uncomment + set your path ───
# Saved Sample Studio chops are rendered here, organized as Artist/Track
# folders by the sample path template. UNCOMMENT the line below, point the
# host side (left of the colon) at your samples folder, then set
# Settings → Library → Folders → Sample Studio Folders to /app/samples.
# Keep this OUT of your music library: a music scanner will happily index
# your chops as albums. Add more folders in-app for per-project
# destinations — the first folder in the list is the default.
# - ./samples:/app/samples
- ./Staging:/app/Staging
- ./MusicVideos:/app/MusicVideos
- ./scripts:/app/scripts
# ─── Video libraries (OUTPUT) — one per content type ─────────────────
# The video Downloads tab sorts finished files into these by type. Point each
# at where Plex/Jellyfin reads from, then set the matching path on
# Settings → Library → Folders → Videos (container paths):
# Movies → /media/movies · TV → /media/tv · YouTube → /media/youtube
- ./Movies:/media/movies
- ./TV:/media/tv
- ./YouTube:/media/youtube
# Optional anime library (Folders → Videos → Anime), uncomment to use:
# - ./Anime:/media/anime
# Optional 4K libraries, off until you switch them on in Folders → Videos →
# 4K libraries. Titles on a quality profile saved to the 4K library land
# here, like a separate "Movies 4K" library in Plex. Uncomment to use:
# - ./Movies-4K:/media/movies-4k
# - ./TV-4K:/media/tv-4k
# Multiple movie / TV drives: give EVERY mount a UNIQUE container path.
# Mounts do not merge: do NOT bind several drives to /media/movies or /media/tv.
# Replace the host paths below with your real folders, then uncomment:
# - /mnt/drive2/Movies:/media/movies2:rw
# - /mnt/drive3/Movies:/media/movies3:rw
# - /mnt/drive4/Movies:/media/movies4:rw
# - /mnt/drive2/TV:/media/tv2:rw
# - /mnt/drive3/TV:/media/tv3:rw
# - /mnt/drive4/TV:/media/tv4:rw
# Recreate the container after adding mounts. In Settings → Library →
# Folders → Videos, add /media/movies2, /media/movies3, /media/movies4 under
# Collections on other drives → More movie folders, and the /media/tv2 etc.
# paths under More TV folders. Enter CONTAINER paths (right side), not /mnt/drive2 paths.
# Keep /media/movies and /media/tv as primary destinations for new downloads.
# Extra paths let SoulSync locate existing files for playback, upgrades,
# renaming and recycling; :rw permits those file operations.
# Plex/Jellyfin must also have these folders mounted and included in the
# libraries selected for SoulSync's video scan. Adding paths here does not
# create media-server libraries or directly crawl unindexed video folders.
# Use named volume for database persistence (separate from host database)
# NOTE: Changed from /app/database to /app/data to avoid overwriting Python package
# Holds BOTH databases (music_library.db + video_library.db) plus the video
# poster-asset store — watchlists/collections/overlays/issues/download-ledger
# all persist here across container upgrades.
- soulsync_database:/app/data
# IMPORTANT: Mount host paths that your input/output folders live on.
# Replace these examples with your actual paths:
# Linux/Mac: - /path/to/your/downloads:/host/downloads:rw
# WSL: - /mnt/d/Music:/host/music:rw
# You can add as many mounts as needed for your setup.
# - /path/to/downloads:/host/downloads:rw
# - /path/to/music-library:/host/music:rw
# Optional: Mount your music library for Plex/Jellyfin/Navidrome access
# - /path/to/your/music:/music:ro
#
# ─── Torrent / Usenet download sources (Prowlarr integration) ────────
# If you use the Torrent Only or Usenet Only download sources, SoulSync
# needs to read the files your torrent / usenet client downloads.
#
# EASIEST SETUP: point qBittorrent, SABnzbd / NZBGet, AND slskd at the
# SAME download folder. The ./downloads mount above is reused; nothing
# new to add here. Just configure each client's download path to
# /downloads (inside its own container) — files land in the same place
# SoulSync already reads from.
#
# SEPARATE FOLDERS (if you prefer): uncomment + edit these to point at
# the client's download folder. The in-container path must MATCH the
# save_path the client reports.
# - /path/to/qbittorrent/downloads:/downloads/torrents:rw
# - /path/to/sabnzbd/complete:/downloads/usenet:rw
# Then set the torrent client's save path to /downloads/torrents and
# SAB / NZBGet's complete folder to /downloads/usenet (or whatever
# in-container path you chose). Skip these if your downloader runs
# outside Docker and writes to a path already mounted above.
# GPU video conversion (free, no subscription). the player converts video a
# screen can't play; a GPU does it many times faster than the CPU. pick one
# block, then check Player settings > Converting > Test GPU.
#
# Intel (Quick Sync / VA-API) or AMD (VA-API): pass the card in. the image
# has the drivers and soulsync joins the card's group by itself.
# devices:
# - /dev/dri:/dev/dri
#
# NVIDIA: install the NVIDIA Container Toolkit on the host, then either
# uncomment `runtime: nvidia` or add the GPU to the `deploy:` block below.
# runtime: nvidia
# environment additions for NVIDIA (append to the list above):
# - NVIDIA_VISIBLE_DEVICES=all
# - NVIDIA_DRIVER_CAPABILITIES=compute,video,utility
extra_hosts:
# Allow container to reach host services
- "host.docker.internal:host-gateway"
restart: unless-stopped
healthcheck:
# Lightweight JSON probe, not / (rendering the index every 30s was a
# steady idle-CPU cost, #1905). Answered before every auth gate, and 200
# while SoulSync is still starting (a big library's upgrade can take a
# while), so the container isn't restarted halfway through it.
# --max-time: Docker does not reliably kill a check that outruns its
# timeout, and stuck curls pile up connections until the worker starves
test: [ "CMD", "curl", "-f", "--max-time", "5", "http://localhost:8008/api/startup-status" ]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
# Resource limits (adjust as needed)
deploy:
resources:
limits:
cpus: '2.0'
memory: 2G
reservations:
cpus: '0.5'
memory: 512M
# NVIDIA GPU for video conversion (instead of runtime: nvidia above):
# devices:
# - driver: nvidia
# count: 1
# capabilities: [gpu, video, compute, utility]
## ─── Optional: slskd (Soulseek client) ───────────────────────────────
## Uncomment below to run slskd alongside SoulSync.
## Downloads land in ./downloads which SoulSync already reads from.
## After starting, set your SoulSync slskd URL to http://slskd:5030
## and the API key to whatever you set in SLSKD_API_KEY below.
#
# slskd:
# image: slskd/slskd:latest
# container_name: slskd
# environment:
# - SLSKD_REMOTE_CONFIGURATION=true
# - SLSKD_API_KEY=your-api-key-here
# - TZ=America/New_York
# ports:
# - "5030:5030"
# volumes:
# - ./slskd-data:/app
# - ./downloads:/app/downloads
# restart: unless-stopped
# Named volumes for persistent data
volumes:
soulsync_database:
driver: local
# Optional: Add external network for communication with other containers
networks:
default:
name: soulsync-network