mirror of
https://github.com/sadan4/dotfiles.git
synced 2025-06-08 13:33:02 -04:00
add sonarr
This commit is contained in:
parent
6197814098
commit
73a7da10ef
3 changed files with 47 additions and 0 deletions
14
common/users/docker/sonarr/default.nix
Normal file
14
common/users/docker/sonarr/default.nix
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
{ config, ... }:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
../../homeModules/sops.nix
|
||||||
|
];
|
||||||
|
home = {
|
||||||
|
file = {
|
||||||
|
sonarr_compose = {
|
||||||
|
source = ./docker-compose.yaml;
|
||||||
|
target = "./src/sonarr/docker-compose.yml";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
15
common/users/docker/sonarr/docker-compose.yml
Normal file
15
common/users/docker/sonarr/docker-compose.yml
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
services:
|
||||||
|
sonarr:
|
||||||
|
image: lscr.io/linuxserver/sonarr:latest
|
||||||
|
container_name: sonarr
|
||||||
|
environment:
|
||||||
|
- PUID=108
|
||||||
|
- PGID=1002
|
||||||
|
- TZ=America/New_York
|
||||||
|
volumes:
|
||||||
|
- /storage/sonarrConf:/config
|
||||||
|
- /storage/tv:/storage/tv
|
||||||
|
- /storage/downloads:/storage/downloads
|
||||||
|
ports:
|
||||||
|
- 8989:8989
|
||||||
|
restart: unless_stopped
|
18
common/users/docker/sonarr/nginx.nix
Normal file
18
common/users/docker/sonarr/nginx.nix
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
services = {
|
||||||
|
nginx = {
|
||||||
|
virtualHosts = {
|
||||||
|
"sonarr.sadan.zip" = {
|
||||||
|
forceSSL = true;
|
||||||
|
useACMEHost = "sadan.zip";
|
||||||
|
locations = {
|
||||||
|
"/" = {
|
||||||
|
proxyPass = "https://localhost:8989";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue