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
26 lines
681 B
Django/Jinja
26 lines
681 B
Django/Jinja
version: '3.7'
|
|
|
|
networks:
|
|
traefik:
|
|
name: traefik
|
|
|
|
services:
|
|
traefik:
|
|
image: "traefik:${traefik_version}"
|
|
container_name: "${traefik_name}"
|
|
ports:
|
|
- "${traefik_web_entry}:80"
|
|
{% if traefik_standalone and not traefik_http_only %}
|
|
- "${traefik_websecure_entry}:443"
|
|
{% endif %}
|
|
networks:
|
|
- traefik
|
|
labels:
|
|
- "traefik.http.routers.traefik.rule=Host(`{{ traefik_domain }}`)"
|
|
- "traefik.http.routers.traefik.service=api@internal"
|
|
- "traefik.docker.network=traefik"
|
|
- "traefik.enable=${traefik_dashboard}"
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- "{{ traefik_root }}/config:/etc/traefik"
|