Browse Source

terraform fmt

hydrogen
Nemo 3 years ago
parent
commit
b35c7e75ec
9 changed files with 20 additions and 26 deletions
  1. +2
    -8
      docker/airsonic.tf
  2. +1
    -1
      docker/couchpotato.tf
  3. +1
    -1
      docker/debug.tf
  4. +1
    -1
      docker/emby.tf
  5. +1
    -1
      docker/headphones.tf
  6. +3
    -2
      docker/lychee.tf
  7. +1
    -0
      docker/main.tf
  8. +0
    -2
      docker/wiki.tf
  9. +10
    -10
      main.tf

+ 2
- 8
docker/airsonic.tf View File

@ -1,39 +1,32 @@
# resource "docker_container" "airsonic" {
# name = "airsonic"
# image = "${docker_image.airsonic.latest}"
# restart = "unless-stopped"
# destroy_grace_seconds = 30
# must_run = true
# memory = 800
# volumes {
# host_path = "/mnt/xwing/config/airsonic/data"
# container_path = "/config"
# }
# volumes {
# host_path = "/mnt/xwing/media/Music"
# container_path = "/music"
# }
# volumes {
# host_path = "/mnt/xwing/config/airsonic/playlists"
# container_path = "/playlists"
# }
# volumes {
# host_path = "/mnt/xwing/config/airsonic/podcasts"
# container_path = "/podcasts"
# }
# labels {
# "traefik.enable" = "true"
# "traefik.port" = "4040"
# "traefik.frontend.rule" = "Host:airsonic.in.${var.domain},airsonic.${var.domain}"
# "traefik.frontend.passHostHeader" = "true"
# }
# # lounge:tatooine
# env = [
# "PUID=1004",
@ -41,4 +34,5 @@
# "TZ=Asia/Kolkata",
# "CONTEXT_PATH=https://airsonic.bb8.fun",
# ]
# }
# }

+ 1
- 1
docker/couchpotato.tf View File

@ -37,4 +37,4 @@ resource "docker_container" "couchpotato" {
]
links = ["{docker_container.transmission.name}"]
}
}

+ 1
- 1
docker/debug.tf View File

@ -15,4 +15,4 @@ resource "docker_container" "headerdebug" {
"traefik.port", 8080,
"traefik.enable", "true",
))}"
}
}

+ 1
- 1
docker/emby.tf View File

@ -33,4 +33,4 @@ resource "docker_container" "emby" {
"APP_CONFIG=/mnt/xwing/config",
"TZ=Asia/Kolkata",
]
}
}

+ 1
- 1
docker/headphones.tf View File

@ -40,4 +40,4 @@ resource "docker_container" "headphones" {
"PGID=1003",
"TZ=Asia/Kolkata",
]
}
}

+ 3
- 2
docker/lychee.tf View File

@ -22,9 +22,10 @@ resource "docker_container" "lychee" {
}
labels = "${merge(
locals.traefik_common_labels, map(
local.traefik_common_labels,
map(
"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 = [


+ 1
- 0
docker/main.tf View File

@ -0,0 +1 @@

+ 0
- 2
docker/wiki.tf View File

@ -43,9 +43,7 @@ resource "docker_container" "wiki" {
"traefik.port", 9999,
"traefik.frontend.headers.customResponseHeaders", "${var.xpoweredby}||Referrer-Policy:${var.refpolicy}||X-Frame-Options:${var.xfo_allow}",
))}"
links = ["${docker_container.mongorocks.name}"]
env = [
"WIKI_ADMIN_EMAIL=me@captnemo.in",
"SESSION_SECRET=${var.wiki_session_secret}",


+ 10
- 10
main.tf View File

@ -14,15 +14,15 @@ module "mysql" {
}
module "docker" {
source = "docker"
web_username = "${var.web_username}"
web_password = "${var.web_password}"
mysql_root_password = "${var.mysql_root_password}"
cloudflare_key = "${var.cloudflare_key}"
cloudflare_email = "bb8@captnemo.in"
wiki_session_secret = "${var.wiki_session_secret}"
ips = "${var.ips}"
domain = "bb8.fun"
source = "docker"
web_username = "${var.web_username}"
web_password = "${var.web_password}"
mysql_root_password = "${var.mysql_root_password}"
cloudflare_key = "${var.cloudflare_key}"
cloudflare_email = "bb8@captnemo.in"
wiki_session_secret = "${var.wiki_session_secret}"
ips = "${var.ips}"
domain = "bb8.fun"
}
module "gitea" {
@ -62,7 +62,7 @@ module "monitoring" {
gf-security-admin-password = "${var.gf-security-admin-password}"
domain = "bb8.fun"
transmission = "${module.docker.names-transmission}"
traefik-labels = "${var.traefik-common-labels}"
traefik-labels = "${var.traefik-common-labels}"
}
module "digitalocean" {


Loading…
Cancel
Save