@@ -32,6 +32,10 @@
|
||||
tags:
|
||||
- plex
|
||||
|
||||
- include_tasks: tautulli.yml
|
||||
tags:
|
||||
- tautulli
|
||||
|
||||
- include_tasks: sonarr.yml
|
||||
tags:
|
||||
- sonarr
|
||||
|
||||
9
roles/docker/tasks/tautulli.yml
Normal file
9
roles/docker/tasks/tautulli.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
---
|
||||
- name: Create tautulli-config directory
|
||||
file:
|
||||
path: "{{ tautulli_config }}"
|
||||
owner: "{{ puid }}"
|
||||
group: "{{ pgid }}"
|
||||
mode: '755'
|
||||
state: directory
|
||||
become: yes
|
||||
@@ -1,8 +1,8 @@
|
||||
version: '3'
|
||||
services:
|
||||
traefik:
|
||||
container_name: traefik
|
||||
image: traefik:latest
|
||||
container_name: traefik
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
net: {}
|
||||
@@ -16,9 +16,9 @@ services:
|
||||
- "{{ traefik_admin_port}}:8080"
|
||||
|
||||
db:
|
||||
container_name: zoneminder_db
|
||||
image: mariadb
|
||||
restart: always
|
||||
container_name: zoneminder_db
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- zoneminder
|
||||
volumes:
|
||||
@@ -33,9 +33,9 @@ services:
|
||||
- "MAX_LOG_NUMBER=20"
|
||||
- "TZ=Europe/Berlin"
|
||||
zoneminder:
|
||||
container_name: zoneminder
|
||||
image: ghcr.io/zoneminder-containers/zoneminder-base:latest
|
||||
restart: always
|
||||
container_name: zoneminder
|
||||
restart: unless-stopped
|
||||
stop_grace_period: 45s
|
||||
depends_on:
|
||||
- db
|
||||
@@ -67,8 +67,8 @@ services:
|
||||
- "traefik.http.services.{{ zoneminder_host }}.loadbalancer.server.port=80"
|
||||
|
||||
pihole:
|
||||
container_name: pihole
|
||||
image: pihole/pihole:latest
|
||||
container_name: pihole
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- net
|
||||
@@ -101,8 +101,8 @@ services:
|
||||
- "traefik.http.services.{{ pihole_host }}.loadbalancer.server.port=80"
|
||||
|
||||
syncthing:
|
||||
container_name: syncthing
|
||||
image: syncthing/syncthing
|
||||
container_name: syncthing
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- net
|
||||
@@ -161,7 +161,7 @@ services:
|
||||
kuma:
|
||||
container_name: kuma
|
||||
image: louislam/uptime-kuma:1
|
||||
restart: always
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- net
|
||||
environment:
|
||||
@@ -180,7 +180,7 @@ services:
|
||||
plex:
|
||||
image: lscr.io/linuxserver/plex:latest
|
||||
container_name: plex
|
||||
restart: always
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- net
|
||||
ports:
|
||||
@@ -210,7 +210,7 @@ services:
|
||||
sonarr:
|
||||
image: lscr.io/linuxserver/sonarr:latest
|
||||
container_name: sonarr
|
||||
restart: always
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- net
|
||||
environment:
|
||||
@@ -231,7 +231,7 @@ services:
|
||||
radarr:
|
||||
image: lscr.io/linuxserver/radarr:latest
|
||||
container_name: radarr
|
||||
restart: always
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- net
|
||||
environment:
|
||||
@@ -252,7 +252,7 @@ services:
|
||||
lidarr:
|
||||
image: lscr.io/linuxserver/lidarr:latest
|
||||
container_name: lidarr
|
||||
restart: always
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- net
|
||||
environment:
|
||||
@@ -273,7 +273,7 @@ services:
|
||||
prowlarr:
|
||||
image: lscr.io/linuxserver/prowlarr:latest
|
||||
container_name: prowlarr
|
||||
restart: always
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- net
|
||||
environment:
|
||||
@@ -292,7 +292,7 @@ services:
|
||||
pastebin:
|
||||
image: wantguns/bin
|
||||
container_name: pastebin
|
||||
restart: always
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- net
|
||||
ports:
|
||||
@@ -313,7 +313,7 @@ services:
|
||||
qbittorrentvpn:
|
||||
image: dyonr/qbittorrentvpn
|
||||
container_name: {{ qbit_host }}
|
||||
restart: always
|
||||
restart: unless-stopped
|
||||
privileged: true
|
||||
networks:
|
||||
- net
|
||||
@@ -337,6 +337,24 @@ services:
|
||||
- "traefik.http.routers.{{ qbit_host }}.rule=Host(`{{ qbit_host }}.{{ aya01_host }}.{{ local_domain }}`)"
|
||||
- "traefik.http.services.{{ qbit_host }}.loadbalancer.server.port=8080"
|
||||
|
||||
tautulli:
|
||||
image: lscr.io/linuxserver/tautulli:latest
|
||||
container_name: tautulli
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- net
|
||||
environment:
|
||||
- PUID={{ puid }}
|
||||
- PGID={{ pgid}}
|
||||
- TZ={{ timezone }}
|
||||
volumes:
|
||||
- {{ tautulli_config}}:/config
|
||||
ports:
|
||||
- {{ tautulli_port }}:8181
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.{{ tautulli_host }}.rule=Host(`{{ tautulli_host }}.{{ aya01_host }}.{{ local_domain }}`)"
|
||||
- "traefik.http.services.{{ tautulli_host }}.loadbalancer.server.port={{ tautulli_port }}"
|
||||
|
||||
networks:
|
||||
zoneminder:
|
||||
|
||||
@@ -23,7 +23,7 @@ services:
|
||||
- PROPAGATION= #optional
|
||||
- EMAIL={{ swag_email }} #optional
|
||||
- ONLY_SUBDOMAINS=false #optional
|
||||
- EXTRA_DOMAINS= #optional
|
||||
- EXTRA_DOMAINS= # qbit.seyshiro.de,zm.seyshiro.de,hass.seyshiro.de
|
||||
- STAGING=false #optional
|
||||
volumes:
|
||||
- "{{ swag_config }}:/config"
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
server {
|
||||
listen 443 ssl;
|
||||
listen [::]:443 ssl;
|
||||
|
||||
server_name {{ hass_host }}.{{ backup_domain }};
|
||||
|
||||
include /config/nginx/ssl.conf;
|
||||
|
||||
client_max_body_size 0;
|
||||
|
||||
location / {
|
||||
include /config/nginx/resolver.conf;
|
||||
proxy_pass http://{{ hass_host }}.{{ pi_host }}.{{ local_domain }};
|
||||
}
|
||||
|
||||
location ~ ^/(api|local|media)/ {
|
||||
include /config/nginx/resolver.conf;
|
||||
proxy_pass http://{{ hass_host }}.{{ pi_host }}.{{ local_domain }};
|
||||
}
|
||||
}
|
||||
@@ -12,7 +12,7 @@ server {
|
||||
|
||||
location / {
|
||||
include /config/nginx/resolver.conf;
|
||||
proxy_pass http://172-16-69-11.{{ vault_plex_server_id }}.plex.direct:{{ plex_port }}/
|
||||
proxy_pass http://{{ aya01_ip | replace('.', '-') }}.{{ vault_plex_server_id }}.plex.direct:{{ plex_port }}/;
|
||||
|
||||
proxy_set_header X-Plex-Client-Identifier $http_x_plex_client_identifier;
|
||||
proxy_set_header X-Plex-Device $http_x_plex_device;
|
||||
|
||||
@@ -0,0 +1,84 @@
|
||||
server {
|
||||
listen 443 ssl;
|
||||
listen [::]:443 ssl;
|
||||
|
||||
server_name {{ qbit_host }}.{{ backup_domain }};
|
||||
|
||||
include /config/nginx/ssl.conf;
|
||||
|
||||
client_max_body_size 0;
|
||||
|
||||
location / {
|
||||
include /config/nginx/resolver.conf;
|
||||
proxy_pass http://{{ qbit_host }}.{{ aya01_host }}.{{ local_domain }};
|
||||
|
||||
proxy_set_header Referer '';
|
||||
proxy_set_header X-Forwarded-Host $host;
|
||||
}
|
||||
|
||||
location ~ (/qbittorrent)?/api {
|
||||
include /config/nginx/proxy.conf;
|
||||
include /config/nginx/resolver.conf;
|
||||
proxy_pass http://{{ qbit_host }}.{{ aya01_host }}.{{ local_domain }};
|
||||
|
||||
rewrite /qbittorrent(.*) $1 break;
|
||||
|
||||
proxy_set_header Referer '';
|
||||
proxy_set_header X-Forwarded-Host $host;
|
||||
}
|
||||
|
||||
location ~ (/qbittorrent)?/command {
|
||||
include /config/nginx/proxy.conf;
|
||||
include /config/nginx/resolver.conf;
|
||||
proxy_pass http://{{ qbit_host }}.{{ aya01_host }}.{{ local_domain }};
|
||||
|
||||
rewrite /qbittorrent(.*) $1 break;
|
||||
|
||||
proxy_set_header Referer '';
|
||||
proxy_set_header X-Forwarded-Host $host;
|
||||
}
|
||||
|
||||
location ~ (/qbittorrent)?/query {
|
||||
include /config/nginx/proxy.conf;
|
||||
include /config/nginx/resolver.conf;
|
||||
proxy_pass http://{{ qbit_host }}.{{ aya01_host }}.{{ local_domain }};
|
||||
|
||||
rewrite /qbittorrent(.*) $1 break;
|
||||
|
||||
proxy_set_header Referer '';
|
||||
proxy_set_header X-Forwarded-Host $host;
|
||||
}
|
||||
|
||||
location ~ (/qbittorrent)?/login {
|
||||
include /config/nginx/proxy.conf;
|
||||
include /config/nginx/resolver.conf;
|
||||
proxy_pass http://{{ qbit_host }}.{{ aya01_host }}.{{ local_domain }};
|
||||
|
||||
rewrite /qbittorrent(.*) $1 break;
|
||||
|
||||
proxy_set_header Referer '';
|
||||
proxy_set_header X-Forwarded-Host $host;
|
||||
}
|
||||
|
||||
location ~ (/qbittorrent)?/sync {
|
||||
include /config/nginx/proxy.conf;
|
||||
include /config/nginx/resolver.conf;
|
||||
proxy_pass http://{{ qbit_host }}.{{ aya01_host }}.{{ local_domain }};
|
||||
|
||||
rewrite /qbittorrent(.*) $1 break;
|
||||
|
||||
proxy_set_header Referer '';
|
||||
proxy_set_header X-Forwarded-Host $host;
|
||||
}
|
||||
|
||||
location ~ (/qbittorrent)?/scripts {
|
||||
include /config/nginx/proxy.conf;
|
||||
include /config/nginx/resolver.conf;
|
||||
proxy_pass http://{{ qbit_host }}.{{ aya01_host }}.{{ local_domain }};
|
||||
|
||||
rewrite /qbittorrent(.*) $1 break;
|
||||
|
||||
proxy_set_header Referer '';
|
||||
proxy_set_header X-Forwarded-Host $host;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
server {
|
||||
listen 443 ssl;
|
||||
listen [::]:443 ssl;
|
||||
|
||||
server_name {{ zoneminder_host }}.{{ backup_domain }};
|
||||
|
||||
include /config/nginx/ssl.conf;
|
||||
|
||||
client_max_body_size 0;
|
||||
location / {
|
||||
include /config/nginx/resolver.conf;
|
||||
proxy_pass http://{{ zoneminder_host }}.{{ aya01_host }}.{{ local_domain }};
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user