media-compose.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. version: '3.7'
  2. # Made to be run with docker-compose, for GPU passthrough.
  3. networks:
  4. media:
  5. driver: overlay
  6. attachable: true
  7. services:
  8. jellyfin:
  9. image: jellyfin/jellyfin:10.7.7
  10. # GPU encoding doesn't work currently
  11. deploy:
  12. resources:
  13. reservations:
  14. devices:
  15. - driver: nvidia
  16. count: 1
  17. capabilities: [gpu]
  18. expose:
  19. - "8096"
  20. user: 1000:1000
  21. ports:
  22. - mode: host
  23. published: 8096
  24. target: 8096
  25. tmpfs:
  26. - /transcodes:mode=770,size=12000000000,uid=1000,gid=1000
  27. volumes:
  28. - ${CONTAINERS_DIR}/jellyfin:/config
  29. - ${MEDIA_DIR}:/media
  30. restart: always
  31. networks:
  32. - media
  33. jellyfixer:
  34. image: quay.io/xsteadfastx/jellyfixer:latest
  35. command: http://jellyfin:8096/jellyfin
  36. expose:
  37. - "8088"
  38. ports:
  39. - mode: host
  40. published: 8088
  41. target: 8088
  42. environment:
  43. - JELLYFIXER_INTERNAL_URL=http://jellyfin:8096/jellyfin
  44. - JELLYFIXER_EXTERNAL_URL=https://jellyfin.${DOMAIN}/jellyfin
  45. restart: always
  46. networks:
  47. - media