forked from notthebee/infra
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add BookSonic, Lidarr and Readerr, remove YouTransfer
- Loading branch information
Showing
21 changed files
with
264 additions
and
45 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
container_name: booksonic | ||
|
||
dashboard_url: "http://booksonic.box" | ||
|
||
homer_category: media |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
- name: Make sure the {{ container_name }} container is created and running | ||
docker_container: | ||
name: "{{ container_name }}" | ||
image: "ghcr.io/linuxserver/{{ container_name }}" | ||
pull: yes | ||
labels: | ||
"flame.type": "application" | ||
"flame.name": "{{ container_name | title }}" | ||
"flame.url": "{{ dashboard_url }}" | ||
"flame.icon": "custom" | ||
state: 'started' | ||
env: | ||
"PUID": "{{ guid }}" | ||
"PGID": "{{ guid }}" | ||
"TZ": "{{ timezone }}" | ||
volumes: | ||
- "/etc/localtime:/etc/localtime" | ||
- "{{ docker_dir }}/{{ container_name }}:/config" | ||
- "{{ mergerfs_root }}/Media/Audiobooks:/audiobooks" | ||
- "{{ mergerfs_root }}/Media/Podcasts:/podcasts" | ||
restart_policy: unless-stopped | ||
|
||
- name: Add {{ container_name }} to the SWAG network (reverse-proxy) | ||
docker_network: | ||
name: swag_network | ||
connected: | ||
- "{{ container_name }}" | ||
appends: yes | ||
when: enable_swag |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
container_name: lidarr | ||
|
||
dashboard_url: "http://lidarr.box" | ||
|
||
homer_category: media |
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
- name: Make sure the {{ container_name }} container is created and running | ||
docker_container: | ||
name: "{{ container_name }}" | ||
image: "ghcr.io/linuxserver/lidarr" | ||
pull: yes | ||
labels: | ||
"flame.type": "application" | ||
"flame.name": "{{ container_name | title }}" | ||
"flame.url": "{{ dashboard_url }}" | ||
"flame.icon": "custom" | ||
state: 'started' | ||
env: | ||
"PUID": "{{ guid }}" | ||
"PGID": "{{ guid }}" | ||
"TZ": "{{ timezone }}" | ||
volumes: | ||
- "/etc/localtime:/etc/localtime" | ||
- "{{ docker_dir }}/{{ container_name }}:/config" | ||
- "{{ mergerfs_root }}/Media/Music:/music" | ||
- "{{ mergerfs_root }}/Downloads:/downloads" | ||
restart_policy: unless-stopped | ||
ports: | ||
- 8686:8686 | ||
|
||
- name: Add {{ container_name }} to the SWAG network (reverse-proxy) | ||
docker_network: | ||
name: swag_network | ||
connected: | ||
- "{{ container_name }}" | ||
appends: yes | ||
when: enable_swag |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
container_name: readarr | ||
|
||
dashboard_url: "http://readarr.box/" | ||
|
||
homer_category: media |
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
- name: Make sure the {{ container_name }} container is created and running | ||
docker_container: | ||
name: "{{ container_name }}" | ||
image: "ghcr.io/linuxserver/readarr:nightly" | ||
pull: yes | ||
labels: | ||
"flame.type": "application" | ||
"flame.name": "{{ container_name | title }}" | ||
"flame.url": "{{ dashboard_url }}" | ||
"flame.icon": "custom" | ||
state: 'started' | ||
env: | ||
"PUID": "{{ guid }}" | ||
"PGID": "{{ guid }}" | ||
"TZ": "{{ timezone }}" | ||
volumes: | ||
- "/etc/localtime:/etc/localtime:ro" | ||
- "{{ docker_dir }}/{{ container_name }}:/config" | ||
- "{{ mergerfs_root }}/Media/Books:/books" | ||
- "{{ mergerfs_root }}/Media/Audiobooks:/audiobooks" | ||
- "{{ mergerfs_root }}/Downloads:/downloads" | ||
restart_policy: unless-stopped | ||
|
||
- name: Add {{ container_name }} to the SWAG network (reverse-proxy) | ||
docker_network: | ||
name: swag_network | ||
connected: | ||
- "{{ container_name }}" | ||
appends: yes | ||
when: enable_swag |
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
16 changes: 16 additions & 0 deletions
16
roles/containers/swag/templates/booksonic.subdomain.conf.j2
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
server { | ||
{% include "common/internal.j2" %} | ||
{% include "common/params.j2" %} | ||
server_name {{ swag_urls['booksonic'] }}; | ||
|
||
location / { | ||
{% include "common/cors.j2" %} | ||
include /config/nginx/proxy.conf; | ||
include /config/nginx/resolver.conf; | ||
set $upstream_app booksonic; | ||
set $upstream_port 4040; | ||
set $upstream_proto http; | ||
proxy_pass $upstream_proto://$upstream_app:$upstream_port; | ||
|
||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
server { | ||
{% include "common/internal.j2" %} | ||
{% include "common/params.j2" %} | ||
server_name {{ swag_urls['lidarr'] }}; | ||
|
||
location / { | ||
{% include "common/cors.j2" %} | ||
include /config/nginx/proxy.conf; | ||
include /config/nginx/resolver.conf; | ||
set $upstream_app lidarr; | ||
set $upstream_port 8686; | ||
set $upstream_proto http; | ||
proxy_pass $upstream_proto://$upstream_app:$upstream_port; | ||
|
||
} | ||
|
||
location ~ (/lidarr)?/api { | ||
include /config/nginx/proxy.conf; | ||
include /config/nginx/resolver.conf; | ||
set $upstream_app lidarr; | ||
set $upstream_port 8686; | ||
set $upstream_proto http; | ||
proxy_pass $upstream_proto://$upstream_app:$upstream_port; | ||
|
||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
server { | ||
{% include "common/internal.j2" %} | ||
{% include "common/params.j2" %} | ||
server_name {{ swag_urls['readarr'] }}; | ||
|
||
location / { | ||
{% include "common/cors.j2" %} | ||
include /config/nginx/proxy.conf; | ||
include /config/nginx/resolver.conf; | ||
set $upstream_app readarr; | ||
set $upstream_port 8787; | ||
set $upstream_proto http; | ||
proxy_pass $upstream_proto://$upstream_app:$upstream_port; | ||
|
||
} | ||
|
||
location ~ (/readarr)?/api { | ||
include /config/nginx/proxy.conf; | ||
include /config/nginx/resolver.conf; | ||
set $upstream_app readarr; | ||
set $upstream_port 8787; | ||
set $upstream_proto http; | ||
proxy_pass $upstream_proto://$upstream_app:$upstream_port; | ||
|
||
} | ||
} |
Oops, something went wrong.