From 7b2bb828af76c0375fb1aaa53a4c476b213a9393 Mon Sep 17 00:00:00 2001 From: Teck Meng Date: Tue, 4 Jun 2024 20:52:04 +0800 Subject: [PATCH] Refactor jellyfin service in swarm/apps.yml to use named volume for configuration --- swarm/apps.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/swarm/apps.yml b/swarm/apps.yml index b13a569..825ed59 100644 --- a/swarm/apps.yml +++ b/swarm/apps.yml @@ -5,9 +5,9 @@ x-environment: &app-environment STREAMLIT_BAI_SERVER_PORT: 8502 GROQ_API_KEY: "${GROQ_API_KEY}" -# volumes: +volumes: # bai_cache: {} - # jellyfin_config: {} + jellyfin_config: {} # jellyfin_cache: {} # adminer_data: {} # privatebin_data: {} @@ -90,7 +90,7 @@ services: - DOMAIN=${DOMAIN} - JELLYFIN_PublishedServerUrl=https://media.${DOMAIN} volumes: - - /var/data/jellyfin_config:/config + - jellyfin_config:/config - /var/data/jellyfin_cache:/cache - type: bind source: ~/media @@ -100,10 +100,10 @@ services: networks: - traefik-public deploy: - # placement: - # constraints: - # - node.labels.jellyfin.jellyfin_config == true - # - node.labels.jellyfin.jellyfin_cache == true + placement: + constraints: + - node.labels.jellyfin.jellyfin_config == true + # - node.labels.jellyfin.jellyfin_cache == true labels: - traefik.enable=true - traefik.docker.network=traefik-public