Microx007

docker-compose.yaml

Jan 30th, 2022 (edited)
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.62 KB | None | 0 0
  1. services:
  2.     traefik:
  3.         container_name: traefik
  4.         image: traefik:latest
  5.         depends_on:
  6.            - authelia
  7.         ports:
  8.            - 80:80
  9.             - 443:443
  10.         networks:
  11.            - proxy
  12.         volumes:
  13.            - /home/pi/traefik/:/etc/traefik/
  14.             - /var/run/docker.sock:/var/run/docker.sock:ro
  15.         environment:
  16.             CF_DNS_API_TOKEN: <CF token>
  17.         labels:
  18.            # Traefik:
  19.             traefik.http.routers.api.service: api@internal    # Enable Traefik API.
  20.             traefik.http.services.traefik-dashboard.loadbalancer.server.port: "8080"
  21.             traefik.enable: true # Enable Traefik reverse proxy for the Traefik dashboard.
  22.             # Watchtower:
  23.             com.centurylinklabs.watchtower.enable: true
  24.             # TRAEFIK PUBLIC
  25.             traefik.http.routers.traefik-public.entrypoints: 'https'
  26.             traefik.http.routers.traefik-public.rule: 'Host(`dashboard.domain.de`)'
  27.             # TRAEFIK LOCAL
  28.             traefik.http.routers.traefik-local.entrypoints: 'http'
  29.             traefik.http.routers.traefik-local.rule: 'Host(`dashboard.appoxo.home`)'
  30.         restart: always
  31.     jellyfin:
  32.         image: "linuxserver/jellyfin:latest"
  33.         container_name: jellyfin
  34.         depends_on:
  35.            - traefik
  36.         ports:
  37.            - "1900:1900/udp"
  38.             - "7359:7539/udp"
  39.         expose:
  40.            - 8096
  41.         networks:
  42.            - proxy
  43.         volumes:
  44.            - /home/pi/jellyfin/config:/config
  45.             - /srv/dev-disk-by-uuid-80b3d2d8-66b7-4025-a5bf-5e40532d72f3/media/data/media:/media
  46.             - /srv/dev-disk-by-uuid-8eb563b9-0ed7-4627-9e09-8f13594cec8d/transcodes:/media/transcodes
  47.             - /etc/localtime:/etc/localtime"
  48.            - /opt/vc/lib:/opt/vc/lib
  49.        environment:
  50.            PUID: 1000
  51.            PGID: 100
  52.            UMASK: 022
  53.            TZ: Europe/Berlin
  54.        labels:
  55.            # Traefik:
  56.            traefik.enable: true # Enable Traefik reverse proxy for the Traefik dashboard.
  57.            traefik.http.services.jellyfin.loadbalancer.server.port: 8096
  58.            # Watchtower:
  59.            com.centurylinklabs.watchtower.enable: true
  60.            # TRAEFIK PUBLIC
  61.            #traefik.http.routers.jellyfin-public.entrypoints: 'https'
  62.            #traefik.http.routers.jellyfin-public.rule: 'Host(`jellyfin.domain.de`)'
  63.            # TRAEFIK LOCAL
  64.            traefik.http.routers.jellyfin-local.entrypoints: 'http'
  65.            traefik.http.routers.jellyfin-local.rule: 'Host(`jellyfin.appoxo.home`)'
  66.        restart:
  67.            unless-stopped
Advertisement
Add Comment
Please, Sign In to add comment