From 08a3409d06ee75e2f6f366f9a08c15057029674f Mon Sep 17 00:00:00 2001 From: Scott Sorell Date: Mon, 7 Sep 2026 11:24:26 -0600 Subject: [PATCH] created separate compose files for nas vs rhel server --- services/media_nas1/compose.yaml | 65 ++++++++++++++++++++ services/{media => media_rhel1}/compose.yaml | 0 tests/test_composectl.py | 6 +- 3 files changed, 69 insertions(+), 2 deletions(-) create mode 100644 services/media_nas1/compose.yaml rename services/{media => media_rhel1}/compose.yaml (100%) diff --git a/services/media_nas1/compose.yaml b/services/media_nas1/compose.yaml new file mode 100644 index 0000000..757aa8a --- /dev/null +++ b/services/media_nas1/compose.yaml @@ -0,0 +1,65 @@ +services: + + # Media Services + plex: + image: lscr.io/linuxserver/plex:latest + container_name: plex + environment: + - PUID=1029 + - PGID=100 + - TZ=America/Edmonton + - VERSION=docker + - PLEX_CLAIM=claim-ysBekXEjCaQYqgzysNGe + - ADVERTISE_IP=http://192.168.88.88:32400/ + - ALLOWED_NETWORKS=192.168.88.0/24,172.27.0.0/16 + volumes: + - /volume1/docker/media_services/plex/config:/config + - /volume1/docker/media_services/plex/transcode:/transcode + - /volume1/media:/media + ports: + - 32400:32400 + - 1900:1900/udp #UPnP + - 5353:5353/udp #mDNS + - 8324:8324 + - 32410:32410/udp + - 32412:32412/udp + - 32413:32413/udp + - 32414:32414/udp + - 32469:32469 + restart: unless-stopped + + # Bittorrent client + qbittorrent: + image: lscr.io/linuxserver/qbittorrent:latest + container_name: qbittorrent + environment: + - PUID=1029 + - PGID=100 + - TZ=America/Edmonton + - WEBUI_PORT=8081 + - TORRENTING_PORT=6881 + volumes: + - /volume1/docker/media_services/qbittorrent/config:/config + - /volume1/media/:/media + ports: + - 8081:8081 + - 6881:6881 + - 6881:6881/udp + restart: unless-stopped + + # Flood Bittorrent UI + flood: + image: jesec/flood + container_name: floodui + user: 1029:100 + command: --port 3001 --allowedpath /data + environment: + - PUID=1029 + - PGID=100 + - TZ=America/Edmonton + - HOME=/config + volumes: + - /volume1/docker/media_services/flood/config:/config + - /volume1/media:/data + ports: + - 3001:3001 diff --git a/services/media/compose.yaml b/services/media_rhel1/compose.yaml similarity index 100% rename from services/media/compose.yaml rename to services/media_rhel1/compose.yaml diff --git a/tests/test_composectl.py b/tests/test_composectl.py index 5c7e306..a294958 100644 --- a/tests/test_composectl.py +++ b/tests/test_composectl.py @@ -31,11 +31,13 @@ class ComposeCtlTests(unittest.TestCase): def test_discover_compose_files_finds_existing_stacks(self): stack_files = discover_compose_files(Path(".")) - self.assertIn(Path("services/media/compose.yaml"), stack_files) + self.assertIn(Path("services/media_nas1/compose.yaml"), stack_files) + self.assertIn(Path("services/media_rhel1/compose.yaml"), stack_files) def test_discover_stack_names_returns_inferred_stack_names(self): stack_names = discover_stack_names(Path(".")) - self.assertIn("media", stack_names) + self.assertIn("media_nas1", stack_names) + self.assertIn("media_rhel1", stack_names) def test_build_update_commands_returns_full_stack_refresh_sequence(self): commands = build_update_commands(