Adds memory limits

This commit is contained in:
Nemo 2017-12-03 20:35:11 +05:30
parent 681cdc3214
commit 0106a1f8bf
2 changed files with 11 additions and 52 deletions

View File

@ -61,16 +61,16 @@ add_album_art = 1
headphones_indexer = 0
wait_until_release_date = 0
rename_files = 0
file_format = $Track $Artist - $Album [$Year] - $Title
customhost = localhost
file_format = $Track - $Title
customhost = headphones.bb8.fun
interface = default
folder_format = $Artist/$Album [$Year]
folder_format = $Artist/$Album
move_files = 1
cleanup_files = 1
replace_existing_folders = 0
preferred_bitrate_allow_lossless = 0
embed_album_art = 1
check_github_on_startup = 1
check_github_on_startup = 0
http_port = 8181
download_torrent_dir = /downloads
folder_permissions = 0755
@ -93,7 +93,7 @@ hppass = ""
customsleep = 1
api_key = ""
encoderlossless = 1
torrent_downloader = 1
torrent_downloader = 0
torrent_removal_interval = 720
blackhole_dir = ""
keep_original_folder = 1

View File

@ -164,53 +164,6 @@ resource "docker_container" "emby" {
]
}
resource "docker_container" "flexget" {
name = "flexget"
image = "${docker_image.flexget.latest}"
volumes {
host_path = "/mnt/xwing/config/flexget"
container_path = "/config"
}
volumes {
host_path = "/mnt/xwing/media/DL"
container_path = "/downloads"
}
volumes {
host_path = "/mnt/xwing/media/TV"
container_path = "/tv"
}
labels {
"traefik.frontend.auth.basic" = "${var.basic_auth}"
"traefik.port" = 5050
"traefik.enable" = "true"
"traefik.frontend.headers.SSLTemporaryRedirect" = "true"
"traefik.frontend.headers.STSSeconds" = "2592000"
"traefik.frontend.headers.STSIncludeSubdomains" = "false"
"traefik.frontend.headers.contentTypeNosniff" = "true"
"traefik.frontend.headers.browserXSSFilter" = "true"
# "traefik.frontend.headers.referrerPolicy" = "no-referrer"
"traefik.frontend.headers.customresponseheaders" = "X-Powered-By:Allomancy,X-Server:Blackbox"
}
memory = 256
restart = "unless-stopped"
destroy_grace_seconds = 10
must_run = true
# Running as lounge:tatooine
env = [
"PUID=1004",
"PGID=1003",
"WEB_PASSWD=${var.web_password}",
"TORRENT_PLUGIN=transmission",
"FLEXGET_LOG_LEVEL=info",
]
}
resource "docker_container" "couchpotato" {
name = "couchpotato"
image = "${docker_image.couchpotato.latest}"
@ -336,6 +289,7 @@ resource "docker_container" "airsonic" {
destroy_grace_seconds = 30
must_run = true
user = "1004"
memory = 800
volumes {
host_path = "/mnt/xwing/config/airsonic/data"
@ -378,6 +332,8 @@ resource "docker_container" "headerdebug" {
destroy_grace_seconds = 30
must_run = true
memory = 16
labels {
"traefik.frontend.rule" = "Host:debug.in.bb8.fun"
"traefik.frontend.passHostHeader" = "true"
@ -399,6 +355,8 @@ resource "docker_container" "sickrage" {
destroy_grace_seconds = 10
must_run = true
memory = 512
volumes {
host_path = "/mnt/xwing/config/sickrage"
container_path = "/config"
@ -553,6 +511,7 @@ resource "docker_container" "wiki" {
restart = "unless-stopped"
destroy_grace_seconds = 30
must_run = true
memory = 300
upload {
content = "${file("${path.module}/conf/wiki.yml")}"