SHARE
TWEET

docker-compose.yml

a guest Nov 8th, 2019 720 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. version: "3.3"
  2. services:
  3.   jellyfin:
  4.     image: "jellyfin/jellyfin"
  5.     container_name: "jellyfin"
  6.     volumes:
  7.       - /opt/appdata/jellyfin/config:/config
  8.       - /opt/appdata/jellyfin/cache:/cache
  9.       - /mnt/storage:/media
  10.     ports:
  11.       - "8096:8096"
  12.     restart: unless-stopped
  13.     networks:
  14.       - proxy
  15.     labels:
  16.       - "traefik.enable=true"
  17.       - "traefik.http.routers.jellyfin.entrypoints=http"
  18.       - "traefik.http.routers.jellyfin.rule=Host(`jellyfin.YOURDOMAIN.com`)"
  19.       - "traefik.http.middlewares.jellyfin-https-redirect.redirectscheme.scheme=https"
  20.       - "traefik.http.routers.jellyfin.middlewares=jellyfin-https-redirect"
  21.       - "traefik.http.routers.jellyfin-secure.entrypoints=https"
  22.       - "traefik.http.routers.jellyfin-secure.rule=Host(`jellyfin.YOURDOMAIN.com`)"
  23.       - "traefik.http.routers.jellyfin-secure.tls=true"
  24.       - "traefik.http.routers.jellyfin-secure.tls.certresolver=http"
  25.       - "traefik.http.routers.jellyfin-secure.service=jellyfin"
  26.       - "traefik.http.services.jellyfin.loadbalancer.server.port=8096"
  27.       - "traefik.docker.network=proxy"
  28.  
  29.   traefik:
  30.     image: traefik:v2.0
  31.     container_name: traefik
  32.     restart: unless-stopped
  33.     security_opt:
  34.       - no-new-privileges:true
  35. #    command: --api.insecure=true
  36.     networks:
  37.       - proxy
  38.     ports:
  39.       - 8080:8080
  40.       - 80:80
  41.       - 443:443
  42.     volumes:
  43.       - /etc/localtime:/etc/localtime:ro
  44.       - /var/run/docker.sock:/var/run/docker.sock:ro
  45.       - /opt/appdata/traefik/data/acme.json:/acme.json
  46.       - /opt/appdata/traefik/data/traefik.yml:/traefik.yml:ro
  47. networks:
  48.   proxy:
  49.     external: true
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top