terraform fmt
This commit is contained in:
parent
6275e7773d
commit
b35c7e75ec
|
@ -1,39 +1,32 @@
|
||||||
# resource "docker_container" "airsonic" {
|
# resource "docker_container" "airsonic" {
|
||||||
# name = "airsonic"
|
# name = "airsonic"
|
||||||
# image = "${docker_image.airsonic.latest}"
|
# image = "${docker_image.airsonic.latest}"
|
||||||
|
|
||||||
# restart = "unless-stopped"
|
# restart = "unless-stopped"
|
||||||
# destroy_grace_seconds = 30
|
# destroy_grace_seconds = 30
|
||||||
# must_run = true
|
# must_run = true
|
||||||
# memory = 800
|
# memory = 800
|
||||||
|
|
||||||
# volumes {
|
# volumes {
|
||||||
# host_path = "/mnt/xwing/config/airsonic/data"
|
# host_path = "/mnt/xwing/config/airsonic/data"
|
||||||
# container_path = "/config"
|
# container_path = "/config"
|
||||||
# }
|
# }
|
||||||
|
|
||||||
# volumes {
|
# volumes {
|
||||||
# host_path = "/mnt/xwing/media/Music"
|
# host_path = "/mnt/xwing/media/Music"
|
||||||
# container_path = "/music"
|
# container_path = "/music"
|
||||||
# }
|
# }
|
||||||
|
|
||||||
# volumes {
|
# volumes {
|
||||||
# host_path = "/mnt/xwing/config/airsonic/playlists"
|
# host_path = "/mnt/xwing/config/airsonic/playlists"
|
||||||
# container_path = "/playlists"
|
# container_path = "/playlists"
|
||||||
# }
|
# }
|
||||||
|
|
||||||
# volumes {
|
# volumes {
|
||||||
# host_path = "/mnt/xwing/config/airsonic/podcasts"
|
# host_path = "/mnt/xwing/config/airsonic/podcasts"
|
||||||
# container_path = "/podcasts"
|
# container_path = "/podcasts"
|
||||||
# }
|
# }
|
||||||
|
|
||||||
# labels {
|
# labels {
|
||||||
# "traefik.enable" = "true"
|
# "traefik.enable" = "true"
|
||||||
# "traefik.port" = "4040"
|
# "traefik.port" = "4040"
|
||||||
# "traefik.frontend.rule" = "Host:airsonic.in.${var.domain},airsonic.${var.domain}"
|
# "traefik.frontend.rule" = "Host:airsonic.in.${var.domain},airsonic.${var.domain}"
|
||||||
# "traefik.frontend.passHostHeader" = "true"
|
# "traefik.frontend.passHostHeader" = "true"
|
||||||
# }
|
# }
|
||||||
|
|
||||||
# # lounge:tatooine
|
# # lounge:tatooine
|
||||||
# env = [
|
# env = [
|
||||||
# "PUID=1004",
|
# "PUID=1004",
|
||||||
|
@ -41,4 +34,5 @@
|
||||||
# "TZ=Asia/Kolkata",
|
# "TZ=Asia/Kolkata",
|
||||||
# "CONTEXT_PATH=https://airsonic.bb8.fun",
|
# "CONTEXT_PATH=https://airsonic.bb8.fun",
|
||||||
# ]
|
# ]
|
||||||
# }
|
# }
|
||||||
|
|
||||||
|
|
|
@ -37,4 +37,4 @@ resource "docker_container" "couchpotato" {
|
||||||
]
|
]
|
||||||
|
|
||||||
links = ["{docker_container.transmission.name}"]
|
links = ["{docker_container.transmission.name}"]
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,4 +15,4 @@ resource "docker_container" "headerdebug" {
|
||||||
"traefik.port", 8080,
|
"traefik.port", 8080,
|
||||||
"traefik.enable", "true",
|
"traefik.enable", "true",
|
||||||
))}"
|
))}"
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,4 +33,4 @@ resource "docker_container" "emby" {
|
||||||
"APP_CONFIG=/mnt/xwing/config",
|
"APP_CONFIG=/mnt/xwing/config",
|
||||||
"TZ=Asia/Kolkata",
|
"TZ=Asia/Kolkata",
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,4 +40,4 @@ resource "docker_container" "headphones" {
|
||||||
"PGID=1003",
|
"PGID=1003",
|
||||||
"TZ=Asia/Kolkata",
|
"TZ=Asia/Kolkata",
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,9 +22,10 @@ resource "docker_container" "lychee" {
|
||||||
}
|
}
|
||||||
|
|
||||||
labels = "${merge(
|
labels = "${merge(
|
||||||
locals.traefik_common_labels, map(
|
local.traefik_common_labels,
|
||||||
|
map(
|
||||||
"traefik.port", 80,
|
"traefik.port", 80,
|
||||||
"traefik.frontend.rule","Host:pics.${var.domain},pics.in.${var.domain}"
|
"traefik.frontend.rule", "Host:pics.${var.domain},pics.in.${var.domain}",
|
||||||
))}"
|
))}"
|
||||||
|
|
||||||
env = [
|
env = [
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
|
|
@ -43,9 +43,7 @@ resource "docker_container" "wiki" {
|
||||||
"traefik.port", 9999,
|
"traefik.port", 9999,
|
||||||
"traefik.frontend.headers.customResponseHeaders", "${var.xpoweredby}||Referrer-Policy:${var.refpolicy}||X-Frame-Options:${var.xfo_allow}",
|
"traefik.frontend.headers.customResponseHeaders", "${var.xpoweredby}||Referrer-Policy:${var.refpolicy}||X-Frame-Options:${var.xfo_allow}",
|
||||||
))}"
|
))}"
|
||||||
|
|
||||||
links = ["${docker_container.mongorocks.name}"]
|
links = ["${docker_container.mongorocks.name}"]
|
||||||
|
|
||||||
env = [
|
env = [
|
||||||
"WIKI_ADMIN_EMAIL=me@captnemo.in",
|
"WIKI_ADMIN_EMAIL=me@captnemo.in",
|
||||||
"SESSION_SECRET=${var.wiki_session_secret}",
|
"SESSION_SECRET=${var.wiki_session_secret}",
|
||||||
|
|
20
main.tf
20
main.tf
|
@ -14,15 +14,15 @@ module "mysql" {
|
||||||
}
|
}
|
||||||
|
|
||||||
module "docker" {
|
module "docker" {
|
||||||
source = "docker"
|
source = "docker"
|
||||||
web_username = "${var.web_username}"
|
web_username = "${var.web_username}"
|
||||||
web_password = "${var.web_password}"
|
web_password = "${var.web_password}"
|
||||||
mysql_root_password = "${var.mysql_root_password}"
|
mysql_root_password = "${var.mysql_root_password}"
|
||||||
cloudflare_key = "${var.cloudflare_key}"
|
cloudflare_key = "${var.cloudflare_key}"
|
||||||
cloudflare_email = "bb8@captnemo.in"
|
cloudflare_email = "bb8@captnemo.in"
|
||||||
wiki_session_secret = "${var.wiki_session_secret}"
|
wiki_session_secret = "${var.wiki_session_secret}"
|
||||||
ips = "${var.ips}"
|
ips = "${var.ips}"
|
||||||
domain = "bb8.fun"
|
domain = "bb8.fun"
|
||||||
}
|
}
|
||||||
|
|
||||||
module "gitea" {
|
module "gitea" {
|
||||||
|
@ -62,7 +62,7 @@ module "monitoring" {
|
||||||
gf-security-admin-password = "${var.gf-security-admin-password}"
|
gf-security-admin-password = "${var.gf-security-admin-password}"
|
||||||
domain = "bb8.fun"
|
domain = "bb8.fun"
|
||||||
transmission = "${module.docker.names-transmission}"
|
transmission = "${module.docker.names-transmission}"
|
||||||
traefik-labels = "${var.traefik-common-labels}"
|
traefik-labels = "${var.traefik-common-labels}"
|
||||||
}
|
}
|
||||||
|
|
||||||
module "digitalocean" {
|
module "digitalocean" {
|
||||||
|
|
Loading…
Reference in New Issue