ansible-role-arrs/templates/docker-compose.yml.j2

103 lines
2.7 KiB
Django/Jinja

version: "3.3"
services:
{% if deluge_enabled %}
deluge:
image: "lscr.io/linuxserver/deluge:{{ deluge_image_version }}"
restart: unless-stopped
env_file:
- "{{ arrs_setup_path }}/env.deluge.conf"
volumes:
- "{{ deluge_config_volume }}:/config"
- "{{ torrent_downloads_volume }}:/downloads"
ports:
- {{ deluge_admin_port }}:8112
- {{ deluge_host_port }}:6881
- {{ deluge_host_port }}:6881/udp
networks:
- arrs
{% endif %}
{% if radarr_enabled %}
radarr:
image: "lscr.io/linuxserver/radarr:{{ radarr_image_version }}"
restart: unless-stopped
env_file:
- "{{ arrs_setup_path }}/env.radarr.conf"
volumes:
- "{{ radarr_config_volume }}:/config"
- "{{ torrent_downloads_volume }}:/downloads"
- "{{ radarr_upload_volume }}:/movies"
{% for item in radarr_library_volumes %}
- "{{ item.path }}:/library/{{ item.alias }}"
{% endfor %}
ports:
- {{ radarr_host_port }}:7878
networks:
- arrs
{% endif %}
{% if sonarr_enabled %}
sonarr:
image: "lscr.io/linuxserver/sonarr:{{ sonarr_image_version }}"
restart: unless-stopped
env_file:
- "{{ arrs_setup_path }}/env.sonarr.conf"
volumes:
- "{{ sonarr_config_volume }}:/config"
- "{{ torrent_downloads_volume }}:/downloads"
- "{{ sonarr_upload_volume }}:/tv"
{% for item in sonarr_library_volumes %}
- "{{ item.path }}:/library/{{ item.alias }}"
{% endfor %}
ports:
- {{ sonarr_host_port }}:8989
networks:
- arrs
{% endif %}
{% if lidarr_enabled %}
lidarr:
image: "lscr.io/linuxserver/lidarr:{{ lidarr_image_version }}"
restart: unless-stopped
env_file:
- "{{ arrs_setup_path }}/env.sonarr.conf"
volumes:
- "{{ lidarr_config_volume }}:/config"
- "{{ torrent_downloads_volume }}:/downloads"
- "{{ lidarr_upload_volume }}:/music"
{% for item in lidarr_library_volumes %}
- "{{ item.path }}:/library/{{ item.alias }}"
{% endfor %}
ports:
- {{ lidarr_host_port }}:8686
networks:
- arrs
{% endif %}
{% if jackett_enabled %}
jackett:
image: "lscr.io/linuxserver/jackett:{{ jackett_image_version }}"
restart: unless-stopped
env_file:
- "{{ arrs_setup_path }}/env.jackett.conf"
volumes:
- {{ jackett_config_volume }}:/config
- {{ torrent_downloads_volume }}:/downloads
ports:
- {{ jackett_host_port }}:9117
networks:
- arrs
flaresolverr:
image: ghcr.io/flaresolverr/flaresolverr:latest
container_name: flaresolverr
env_file:
- "{{ arrs_setup_path }}/env.flaresolverr.conf"
ports:
- "{{ flaresolverr_host_port }}:8191"
restart: unless-stopped
networks:
- arrs
{% endif %}
networks:
arrs: {}