Kris Lamoureux
81d2ea447a
- Added development "mediaserver" playbook for testing - rm .gitignore in roles dir since no external ansible roles are used - Update a part of the base role to use FQCN for linting - Added "jellyfin" role to install Jellyfin with docker-compose - Updated Traefik to use the loopback for default web entry points - Simplified Traefik docker-compose vars, Ansible sets defaults
30 lines
781 B
Django/Jinja
30 lines
781 B
Django/Jinja
version: '3.7'
|
|
|
|
volumes:
|
|
{{ jellyfin_volume }}:
|
|
|
|
networks:
|
|
traefik:
|
|
external: true
|
|
|
|
services:
|
|
jellyfin:
|
|
image: "jellyfin/jellyfin:${jellyfin_version}"
|
|
container_name: "${jellyfin_name}"
|
|
networks:
|
|
- traefik
|
|
labels:
|
|
- "traefik.http.routers.{{ jellyfin_router }}.rule=Host(`{{ jellyfin_domain }}`)"
|
|
{% if traefik_http_only %}
|
|
- "traefik.http.routers.{{ jellyfin_router }}.entrypoints=web"
|
|
{% else %}
|
|
- "traefik.http.routers.{{ jellyfin_router }}.entrypoints=websecure"
|
|
{% endif %}
|
|
- "traefik.http.services.{{ jellyfin_router }}.loadbalancer.server.port=8096"
|
|
- "traefik.docker.network=traefik"
|
|
- "traefik.enable=true"
|
|
volumes:
|
|
- ./config:/config
|
|
- ./cache:/cache
|
|
- {{ jellyfin_volume }}:/media
|