Add bazarr configs
This commit is contained in:
parent
05c367e531
commit
0a8395e8fa
@ -115,6 +115,9 @@
|
||||
- name: lidarr-config
|
||||
path: /srv/volumes/nas-container/lidarr
|
||||
read_only: false
|
||||
- name: bazarr-config
|
||||
path: /srv/volumes/nas-container/bazarr
|
||||
read_only: false
|
||||
- name: all-volumes
|
||||
path: /srv/volumes
|
||||
owner: "root"
|
||||
|
@ -54,13 +54,15 @@ nomad/jobs/backup-oneoff-pi4:
|
||||
nas_ftp_host: VALUE
|
||||
nas_ftp_pass: VALUE
|
||||
nas_ftp_user: VALUE
|
||||
nomad/jobs/bazarr/bazarr:
|
||||
nomad/jobs/bazarr:
|
||||
db_name: VALUE
|
||||
db_pass: VALUE
|
||||
db_user: VALUE
|
||||
nomad/jobs/bazarr/bazarr/postgres-bootstrap:
|
||||
superuser: VALUE
|
||||
superuser_pass: VALUE
|
||||
nomad/jobs/bazarr/bazarr/stunnel:
|
||||
postgres_stunnel_psk: VALUE
|
||||
nomad/jobs/blocky:
|
||||
db_name: VALUE
|
||||
db_pass: VALUE
|
||||
|
57
services/bazarr.tf
Normal file
57
services/bazarr.tf
Normal file
@ -0,0 +1,57 @@
|
||||
module "bazarr" {
|
||||
source = "./service"
|
||||
|
||||
name = "bazarr"
|
||||
image = "lscr.io/linuxserver/bazarr:latest"
|
||||
|
||||
resources = {
|
||||
cpu = 150
|
||||
memory = 400
|
||||
}
|
||||
|
||||
ingress = true
|
||||
service_port = 6767
|
||||
|
||||
use_postgres = true
|
||||
postgres_bootstrap = {
|
||||
enabled = true
|
||||
}
|
||||
|
||||
env = {
|
||||
PGID = 100
|
||||
PUID = 1001
|
||||
TZ = "America/Los_Angeles"
|
||||
}
|
||||
|
||||
host_volumes = [
|
||||
{
|
||||
name = "bazarr-config"
|
||||
dest = "/config"
|
||||
read_only = false
|
||||
},
|
||||
{
|
||||
name = "media-write"
|
||||
dest = "/media"
|
||||
read_only = false
|
||||
},
|
||||
]
|
||||
|
||||
templates = [
|
||||
{
|
||||
data = <<EOF
|
||||
{{ with nomadVar "nomad/jobs/bazarr" -}}
|
||||
POSTGRES_ENABLED=True
|
||||
POSTGRES_HOST=127.0.0.1
|
||||
POSTGRES_PORT=5432
|
||||
POSTGRES_DATABASE={{ .db_name }}
|
||||
POSTGRES_USERNAME={{ .db_user }}
|
||||
POSTGRES_PASSWORD={{ .db_pass }}
|
||||
{{- end }}
|
||||
EOF
|
||||
dest_prefix = "$${NOMAD_SECRETS_DIR}/"
|
||||
dest = "env"
|
||||
env = true
|
||||
mount = false
|
||||
},
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user