1 parent
f47217d5a3
commit
8ceb3c8be8
60 files changed
+10884
No files matched your search
@@ -0,0 +1,24 @@
|
||||
# One of these per server. Mount media at the SAME paths as your Jellyfin
|
||||
# container so the paths Jellyfin reports are the paths jellymove sees.
|
||||
services:
|
||||
jellymove:
|
||||
image: jellymove:latest
|
||||
build: ..
|
||||
container_name: jellymove
|
||||
restart: unless-stopped
|
||||
# Same UID:GID as Jellyfin so moved files keep the right ownership.
|
||||
user: "1000:1000"
|
||||
ports:
|
||||
- "8097:8097"
|
||||
volumes:
|
||||
- ./jellymove.toml:/config/jellymove.toml:ro
|
||||
- ./jellymove-data:/data
|
||||
- /srv/media/movies:/media/movies # ← match your jellyfin service
|
||||
- /srv/media/tv:/media/tv
|
||||
environment:
|
||||
# Secrets can come from the environment instead of the file:
|
||||
# JELLYMOVE_JELLYFIN__API_KEY: ...
|
||||
# JELLYMOVE_PEER__TOKEN: ...
|
||||
JELLYMOVE_LOG: info
|
||||
# Only needed for a post_move hook like `docker restart jellyswarrm`:
|
||||
# - /var/run/docker.sock:/var/run/docker.sock
|
||||
@@ -0,0 +1,23 @@
|
||||
[Unit]
|
||||
Description=jellymove agent
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
# Run as the same user that owns your media (usually the jellyfin user).
|
||||
User=jellyfin
|
||||
Group=jellyfin
|
||||
ExecStart=/usr/local/bin/jellymove --config /etc/jellymove/jellymove.toml run
|
||||
Environment=JELLYMOVE_LOG=info
|
||||
# systemd creates /var/lib/jellymove owned by User=; set data_dir to it.
|
||||
StateDirectory=jellymove
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
# Transfers resume after a restart, so a plain stop is safe.
|
||||
KillSignal=SIGTERM
|
||||
NoNewPrivileges=true
|
||||
ProtectSystem=full
|
||||
PrivateTmp=true
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in new issue
Block a user