-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
First batch of changes for PR #10
Open
ezekieldas
wants to merge
5
commits into
buildarr:main
Choose a base branch
from
ezekieldas:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 2 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,135 +1,52 @@ | ||
--- | ||
# Arr application Docker Compose stack with configuration management using Buildarr. | ||
|
||
version: "3.7" | ||
|
||
services: | ||
|
||
# Transmission instance for downloading torrents. | ||
transmission: | ||
image: "{{ arrstack_transmission_container_uri }}:{{ arrstack_transmission_container_tag }}" | ||
hostname: transmission | ||
restart: always | ||
ports: | ||
- 127.0.0.1:9091:9091 | ||
volumes: | ||
- ./transmission:/config | ||
- type: bind | ||
source: "{{ arrstack_data_dir }}/torrents" | ||
target: /data/torrents | ||
environment: | ||
TZ: "{{ arrstack_timezone }}" | ||
PUID: "{{ arrstack_volume_dir_owner }}" | ||
PGID: "{{ arrstack_volume_dir_group }}" | ||
TRANSMISSION_WEB_HOME: "/flood-for-transmission/" | ||
WHITELIST: "*.*.*.*" | ||
|
||
# FlareSolverr instance for bypassing CloudFlare. | ||
flaresolverr: | ||
image: "{{ arrstack_flaresolverr_container_uri }}:{{ arrstack_flaresolverr_container_tag }}" | ||
hostname: flaresolverr | ||
restart: always | ||
ports: | ||
- 127.0.0.1:8191:8191 | ||
environment: | ||
TZ: "{{ arrstack_timezone }}" | ||
LOG_LEVEL: "info" | ||
|
||
# Sonarr instance for grabbing HD/SD TV shows. | ||
sonarr-hd: | ||
image: "{{ arrstack_sonarr_container_uri }}:{{ arrstack_sonarr_container_tag }}" | ||
hostname: sonarr-hd | ||
restart: always | ||
ports: | ||
- 127.0.0.1:8989:8989 | ||
volumes: | ||
- "./sonarr-hd:/config" | ||
- type: bind | ||
source: "{{ arrstack_data_dir }}" | ||
target: /data | ||
environment: | ||
TZ: "{{ arrstack_timezone }}" | ||
PUID: "{{ arrstack_volume_dir_owner }}" | ||
PGID: "{{ arrstack_volume_dir_group }}" | ||
depends_on: | ||
- transmission | ||
|
||
# Sonarr instance for grabbing 4K TV shows. | ||
sonarr-4k: | ||
image: "{{ arrstack_sonarr_container_uri }}:{{ arrstack_sonarr_container_tag }}" | ||
hostname: sonarr-4k | ||
restart: always | ||
{% include 'gluetun.j2' ignore missing %} | ||
|
||
{%+ for item in services %} | ||
{{ item.service_name }}: | ||
image: {{ item.image}}:{{ item.image_tag }} | ||
container_name: {{ item.container_name }} | ||
{% if item.network_mode is defined %} | ||
network_mode: {{ item.network_mode }} | ||
{%- endif %} | ||
{% if item.hostname is defined %} | ||
hostname: | ||
{%- endif %} | ||
{% if item.network_mode is defined %} | ||
{% else %} | ||
{% if item.ports is defined %} | ||
ports: | ||
- 127.0.0.1:8990:8989 | ||
volumes: | ||
- "./sonarr-4k:/config" | ||
- type: bind | ||
source: "{{ arrstack_data_dir }}" | ||
target: /data | ||
environment: | ||
TZ: "{{ arrstack_timezone }}" | ||
PUID: "{{ arrstack_volume_dir_owner }}" | ||
PGID: "{{ arrstack_volume_dir_group }}" | ||
depends_on: | ||
- transmission | ||
{% for port in item.ports %} | ||
- {{ port }} | ||
{% endfor %} | ||
{% endif %} | ||
{% endif %} | ||
|
||
# Sonarr instance for grabbing anime series. | ||
sonarr-anime: | ||
image: "{{ arrstack_sonarr_container_uri }}:{{ arrstack_sonarr_container_tag }}" | ||
hostname: sonarr-anime | ||
restart: always | ||
ports: | ||
- 127.0.0.1:8991:8989 | ||
{% if item.volumes is defined %} | ||
volumes: | ||
- "./sonarr-anime:/config" | ||
- type: bind | ||
source: "{{ arrstack_data_dir }}" | ||
target: /data | ||
{% for volume in item.volumes %} | ||
- {{ volume }} | ||
{% endfor %} | ||
{% endif %} | ||
environment: | ||
TZ: "{{ arrstack_timezone }}" | ||
PUID: "{{ arrstack_volume_dir_owner }}" | ||
PGID: "{{ arrstack_volume_dir_group }}" | ||
- TZ="{{ arrstack_timezone }}" | ||
- UID="{{ arrstack_volume_dir_owner }}" | ||
- GID="{{ arrstack_volume_dir_group }}" | ||
{%if item.depends_on is defined %} | ||
depends_on: | ||
- transmission | ||
|
||
# Prowlarr instance for managing indexers. | ||
prowlarr: | ||
image: "{{ arrstack_prowlarr_container_uri }}:{{ arrstack_prowlarr_container_tag }}" | ||
hostname: prowlarr | ||
{% endif %} | ||
{% if item.depends_on is defined %} | ||
{% for dependency in item.depends_on %} | ||
{{ dependency }}: | ||
condition: service_healthy | ||
{% endfor %} | ||
{%- endif %} | ||
{% if item.port_healthcheck is defined %} | ||
healthcheck: | ||
test: curl --silent --fail localhost:{{ item.port_healthcheck}} || exit 1 | ||
interval: 10s | ||
retries: 3 | ||
start_period: 5s | ||
timeout: 5s | ||
{% endif %} | ||
restart: always | ||
ports: | ||
- 127.0.0.1:9696:9696 | ||
volumes: | ||
- "./prowlarr:/config" | ||
- type: bind | ||
source: "{{ arrstack_data_dir }}" | ||
target: /data | ||
environment: | ||
TZ: "{{ arrstack_timezone }}" | ||
PUID: "{{ arrstack_volume_dir_owner }}" | ||
PGID: "{{ arrstack_volume_dir_group }}" | ||
depends_on: | ||
- transmission | ||
- flaresolverr | ||
- sonarr-hd | ||
- sonarr-4k | ||
- sonarr-anime | ||
|
||
# Buildarr instance for managing instance configurations. | ||
buildarr: | ||
image: "{{ arrstack_buildarr_container_uri }}:{{ arrstack_buildarr_container_tag }}" | ||
hostname: buildarr | ||
restart: always | ||
volumes: | ||
- type: bind | ||
source: ./buildarr | ||
target: /config | ||
environment: | ||
TZ: "{{ arrstack_timezone }}" | ||
PUID: "{{ arrstack_volume_dir_owner }}" | ||
PGID: "{{ arrstack_volume_dir_group }}" | ||
depends_on: | ||
- sonarr-hd | ||
- sonarr-4k | ||
- sonarr-anime | ||
- prowlarr | ||
{% endfor %} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please include a way to disable including this using the Ansible inventory?
For example, I host my *Arrs on a NAS in my home, and don't need to setup VPNs to access it (and even then, I actually have a separate setup for all that).