---
jellyfin_svc:
  domain: "{{ all_services | service_get_domain(role_name) }}"
  port: 8096
  db:
    host: "{{ postgres.host }}"
    port: "{{ postgres.port }}"

jellyfin_env:
  JELLYFIN_PublishedServerUrl: https://{{ svc.domain }}

jellyfin_compose:
  watchtower: update
  image: jellyfin/jellyfin
  volumes:
    - config:/config
    - cache:/cache
    - media:/media
  file:
    services:
      app:
        user: 8096:8096
    volumes:
      config:
      cache:
      media: "{{ vault_jellyfin.media_volume_driver }}"