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

91 lines
2.5 KiB
Plaintext
Raw Normal View History

2022-09-28 09:30:25 +02:00
version: "3.3"
services:
{% if deluge_enabled %}
deluge:
2022-09-28 22:28:41 +02:00
image: "lscr.io/linuxserver/deluge:{{ deluge_image_version }}"
2022-09-29 19:50:09 +02:00
restart: unless-stopped
2022-09-28 09:30:25 +02:00
env_file:
2022-09-30 00:31:53 +02:00
- "{{ arrs_setup_path }}/env.deluge.conf"
2022-09-28 09:30:25 +02:00
volumes:
2022-09-30 00:31:53 +02:00
- "{{ deluge_config_volume }}:/config"
- "{{ torrent_downloads_volume }}:/downloads"
2022-09-28 09:30:25 +02:00
ports:
- {{ deluge_admin_port }}:8112
- {{ deluge_host_port }}:6881
- {{ deluge_host_port }}:6881/udp
networks:
- arrs
{% endif %}
2022-09-29 19:50:09 +02:00
{% if radarr_enabled %}
2022-09-29 22:26:08 +02:00
radarr:
2022-09-29 19:50:09 +02:00
image: "lscr.io/linuxserver/radarr:{{ radarr_image_version }}"
restart: unless-stopped
env_file:
2022-09-30 00:31:53 +02:00
- "{{ arrs_setup_path }}/env.radarr.conf"
2022-09-29 19:50:09 +02:00
volumes:
2022-09-30 00:31:53 +02:00
- "{{ radarr_config_volume }}:/config"
- "{{ torrent_downloads_volume }}:/downloads"
- "{{ radarr_upload_volume }}:/movies"
2022-09-29 22:47:28 +02:00
{% for item in radarr_library_volumes %}
2022-09-30 00:31:53 +02:00
- "{{ item.path }}:/library/{{ item.alias }}"
2022-09-29 22:47:28 +02:00
{% endfor %}
2022-09-29 19:50:09 +02:00
ports:
- {{ radarr_host_port }}:7878
networks:
- arrs
{% endif %}
2022-09-28 09:30:25 +02:00
{% if sonarr_enabled %}
sonarr:
image: "lscr.io/linuxserver/sonarr:{{ sonarr_image_version }}"
2022-09-29 19:50:09 +02:00
restart: unless-stopped
2022-09-28 09:30:25 +02:00
env_file:
2022-09-30 00:31:53 +02:00
- "{{ arrs_setup_path }}/env.sonarr.conf"
2022-09-28 09:30:25 +02:00
volumes:
2022-09-30 00:31:53 +02:00
- "{{ sonarr_config_volume }}:/config"
- "{{ torrent_downloads_volume }}:/downloads"
- "{{ sonarr_upload_volume }}:/tv"
2022-09-29 22:47:28 +02:00
{% for item in sonarr_library_volumes %}
2022-09-30 00:31:53 +02:00
- "{{ item.path }}:/library/{{ item.alias }}"
2022-09-29 22:47:28 +02:00
{% endfor %}
2022-09-28 09:30:25 +02:00
ports:
- {{ sonarr_host_port }}:8989
networks:
- arrs
{% endif %}
{% if lidarr_enabled %}
lidarr:
image: "lscr.io/linuxserver/lidarr:{{ lidarr_image_version }}"
2022-09-29 19:50:09 +02:00
restart: unless-stopped
2022-09-28 09:30:25 +02:00
env_file:
2022-09-30 00:31:53 +02:00
- "{{ arrs_setup_path }}/env.sonarr.conf"
2022-09-28 09:30:25 +02:00
volumes:
2022-09-30 00:31:53 +02:00
- "{{ lidarr_config_volume }}:/config"
- "{{ torrent_downloads_volume }}:/downloads"
- "{{ lidarr_upload_volume }}:/music"
2022-09-29 22:47:28 +02:00
{% for item in lidarr_library_volumes %}
2022-09-30 00:31:53 +02:00
- "{{ item.path }}:/library/{{ item.alias }}"
2022-09-29 19:50:09 +02:00
{% endfor %}
2022-09-28 09:30:25 +02:00
ports:
- {{ lidarr_host_port }}:8686
networks:
- arrs
{% endif %}
{% if jackett_enabled %}
jackett:
image: "lscr.io/linuxserver/jackett:{{ jackett_image_version }}"
2022-09-29 19:50:09 +02:00
restart: unless-stopped
2022-09-28 09:30:25 +02:00
env_file:
2022-09-30 00:31:53 +02:00
- "{{ arrs_setup_path }}/env.jackett.conf"
2022-09-28 09:30:25 +02:00
volumes:
- {{ jackett_config_volume }}:/config
- {{ torrent_downloads_volume }}:/downloads
2022-09-29 19:50:09 +02:00
2022-09-28 09:30:25 +02:00
ports:
- {{ jackett_host_port }}:9117
networks:
- arrs
{% endif %}
networks:
arrs: {}