Browse Source

General Updates

kaarana-wordpress
Nemo 1 year ago
parent
commit
2b2b68f722
10 changed files with 209 additions and 159 deletions
  1. +1
    -1
      gitea/data.tf
  2. +16
    -18
      heimdall.tf
  3. +12
    -12
      jupyter.tf
  4. +15
    -13
      main.tf
  5. +39
    -0
      media/bazarr.tf
  6. +35
    -0
      media/mylar.tf
  7. +57
    -64
      monicahq.tf
  8. +11
    -10
      outline.tf
  9. +23
    -27
      pulse.tf
  10. +0
    -14
      requestbin.tf

+ 1
- 1
gitea/data.tf View File

@ -1,7 +1,7 @@
# https://github.com/go-gitea/gitea/releases
data "docker_registry_image" "gitea" {
# not bleeding, this is hemorrhaging edge
name = "gitea/gitea:1.8"
name = "gitea/gitea:1.9"
}
data "docker_registry_image" "redis" {


+ 16
- 18
heimdall.tf View File

@ -1,19 +1,17 @@
module "heimdall" {
name = "heimdall"
source = "modules/container"
image = "linuxserver/heimdall:latest"
# module "heimdall" {
# name = "heimdall"
# source = "modules/container"
# image = "linuxserver/heimdall:latest"
# web {
# expose = true
# port = 443
# protocol = "https"
# basicauth = "true"
# host = "home.bb8.fun"
# }
# networks = "${list(module.docker.traefik-network-id)}"
# env = [
# "TZ=Asia/Kolkata",
# ]
# }
web {
expose = true
port = 443
protocol = "https"
basicauth = "true"
host = "home.bb8.fun"
}
networks = "${list(module.docker.traefik-network-id)}"
env = [
"TZ=Asia/Kolkata",
]
}

+ 12
- 12
jupyter.tf View File

@ -1,13 +1,13 @@
module "jupyter" {
name = "jupyter"
source = "modules/container"
image = "jupyter/tensorflow-notebook"
# module "jupyter" {
# name = "jupyter"
# source = "modules/container"
# image = "jupyter/tensorflow-notebook"
# ports = [
# {
# internal = 8888
# external = 1112
# ip = "${var.ips["tun0"]}"
# },
# ]
# }
ports = [
{
internal = 8888
external = 1112
ip = "${var.ips["tun0"]}"
},
]
}

+ 15
- 13
main.tf View File

@ -63,13 +63,13 @@ module "radicale" {
domain = "radicale.bb8.fun"
}
module "resilio" {
source = "resilio"
domain = "sync.bb8.fun"
traefik-labels = "${var.traefik-common-labels}"
ips = "${var.ips}"
traefik-network-id = "${module.docker.traefik-network-id}"
}
# module "resilio" {
# source = "resilio"
# domain = "sync.bb8.fun"
# traefik-labels = "${var.traefik-common-labels}"
# ips = "${var.ips}"
# traefik-network-id = "${module.docker.traefik-network-id}"
# }
module "media" {
source = "media"
@ -100,9 +100,11 @@ module "digitalocean" {
# ips = "${var.ips}"
# }
module "abstruse" {
source = "abstruse"
domain = "ci.bb8.fun"
traefik-labels = "${var.traefik-common-labels}"
traefik-network-id = "${module.docker.traefik-network-id}"
}
# module "abstruse" {
# source = "abstruse"
# domain = "ci.bb8.fun"
# traefik-labels = "${var.traefik-common-labels}"
# traefik-network-id = "${module.docker.traefik-network-id}"
# }

+ 39
- 0
media/bazarr.tf View File

@ -0,0 +1,39 @@
module "bazarr-container" {
name = "bazarr"
source = "../modules/container"
image = "linuxserver/bazarr:latest"
web {
expose = true
port = 6767
host = "bazarr.${var.domain}"
}
resource {
memory = 512
memory_swap = 1024
}
volumes = [
{
host_path = "/mnt/xwing/config/bazarr"
container_path = "/config"
},
{
host_path = "/mnt/xwing/media/TV"
container_path = "/tv"
},
{
host_path = "/mnt/xwing/media/Movies"
container_path = "/movies"
},
]
env = [
"PUID=1004",
"PGID=1003",
"TZ=Asia/Kolkata",
]
networks = "${list(docker_network.media.id, data.docker_network.bridge.id)}"
}

+ 35
- 0
media/mylar.tf View File

@ -0,0 +1,35 @@
module "mylar" {
name = "mylar"
source = "../modules/container"
image = "linuxserver/mylar:latest"
web {
expose = true
port = 8090
host = "mylar.${var.domain}"
auth = true
}
volumes = [
{
host_path = "/mnt/xwing/media/EBooks/Comics"
container_path = "/comics"
},
{
host_path = "/mnt/xwing/config/mylar"
container_path = "/config"
},
{
host_path = "/mnt/xwing/media/DL"
container_path = "/downloads"
},
]
env = [
"PUID=1004",
"PGID=1003",
"TZ=Asia/Kolkata",
]
networks = "${list(docker_network.media.id, data.docker_network.bridge.id)}"
}

+ 57
- 64
monicahq.tf View File

@ -1,65 +1,58 @@
module "monicahq-container" {
name = "monica"
source = "modules/container"
image = "monicahq/monicahq:latest"
# module "monicahq-container" {
# name = "monica"
# source = "modules/container"
# image = "monicahq/monicahq:latest"
# web {
# expose = true
# host = "monica.${var.root-domain}"
# }
# networks = "${list(module.docker.traefik-network-id,module.db.postgres-network-id)}"
# env = [
# "APP_ENV=production",
# "APP_DEBUG=false",
# "APP_KEY=${data.pass_password.monica-app-key.password}",
# "HASH_SALT=${data.pass_password.monica-hash-salt.password}",
# "HASH_LENGTH=18",
# "APP_URL=https://monica.${var.root-domain}",
# "DB_CONNECTION=pgsql",
# "DB_HOST=postgres",
# "DB_DATABASE=monica",
# "DB_PORT=5432",
# "DB_USERNAME=monica",
# "DB_PASSWORD=${data.pass_password.monica-db-password.password}",
# "DB_PREFIX=",
# "MAIL_DRIVER=smtp",
# "MAIL_HOST=smtp.mailgun.org",
# "MAIL_PORT=587",
# "MAIL_USERNAME=monica@captnemo.in",
# "MAIL_PASSWORD=${data.pass_password.monica-smtp-password.password}",
# "MAIL_ENCRYPTION=tls",
# "MAIL_FROM_ADDRESS=monica@captnemo.in",
# "MAIL_FROM_NAME=Nemo",
# "APP_EMAIL_NEW_USERS_NOTIFICATION=monica@captnemo.in",
# "APP_DEFAULT_TIMEZONE=Asia/Kolkata",
# "APP_DEFAULT_LOCALE=en",
# # Ability to disable signups on your instance.
# # Can be true or false. Default to false.
# "APP_DISABLE_SIGNUP=false",
# "LOG_CHANNEL=single",
# "SENTRY_SUPPORT=false",
# "CHECK_VERSION=true",
# "REQUIRES_SUBSCRIPTION=false",
# # cache redis is not yet documented
# "CACHE_DRIVER=database",
# "SESSION_DRIVER=file",
# "SESSION_LIFETIME=120",
# "QUEUE_DRIVER=sync",
# "DEFAULT_FILESYSTEM=public",
# "2FA_ENABLED=true",
# "ALLOW_STATISTICS_THROUGH_PUBLIC_API_ACCESS=false",
# "APP_TRUSTED_PROXIES=*",
# ]
# }
# module "monicahq-db" {
# source = "modules/postgres"
# name = "monica"
# password = "${data.pass_password.monica-db-password.password}"
# }
web {
expose = true
host = "monica.${var.root-domain}"
}
networks = "${list(module.docker.traefik-network-id,module.db.postgres-network-id)}"
env = [
"APP_ENV=production",
"APP_DEBUG=false",
"APP_KEY=${data.pass_password.monica-app-key.password}",
"HASH_SALT=${data.pass_password.monica-hash-salt.password}",
"HASH_LENGTH=18",
"APP_URL=https://monica.${var.root-domain}",
"DB_CONNECTION=pgsql",
"DB_HOST=postgres",
"DB_DATABASE=monica",
"DB_PORT=5432",
"DB_USERNAME=monica",
"DB_PASSWORD=${data.pass_password.monica-db-password.password}",
"DB_PREFIX=",
"MAIL_DRIVER=smtp",
"MAIL_HOST=smtp.mailgun.org",
"MAIL_PORT=587",
"MAIL_USERNAME=monica@captnemo.in",
"MAIL_PASSWORD=${data.pass_password.monica-smtp-password.password}",
"MAIL_ENCRYPTION=tls",
"MAIL_FROM_ADDRESS=monica@captnemo.in",
"MAIL_FROM_NAME=Nemo",
"APP_EMAIL_NEW_USERS_NOTIFICATION=monica@captnemo.in",
"APP_DEFAULT_TIMEZONE=Asia/Kolkata",
"APP_DEFAULT_LOCALE=en",
# Ability to disable signups on your instance.
# Can be true or false. Default to false.
"APP_DISABLE_SIGNUP=false",
"LOG_CHANNEL=single",
"SENTRY_SUPPORT=false",
"CHECK_VERSION=true",
"REQUIRES_SUBSCRIPTION=false",
# cache redis is not yet documented
"CACHE_DRIVER=database",
"SESSION_DRIVER=file",
"SESSION_LIFETIME=120",
"QUEUE_DRIVER=sync",
"DEFAULT_FILESYSTEM=public",
"2FA_ENABLED=true",
"ALLOW_STATISTICS_THROUGH_PUBLIC_API_ACCESS=false",
"APP_TRUSTED_PROXIES=*",
]
}
module "monicahq-db" {
source = "modules/postgres"
name = "monica"
password = "${data.pass_password.monica-db-password.password}"
}

+ 11
- 10
outline.tf View File

@ -1,10 +1,11 @@
module "outline" {
source = "modules/outline"
smtp_password = "${data.pass_password.outline_smtp_password.password}"
secret_key = "${data.pass_password.outline_secret_key.password}"
slack_key = "${data.pass_password.outline_slack_key.password}"
slack_secret = "${data.pass_password.outline_slack_secret.password}"
slack_app_id = "${data.pass_password.outline_slack_app_id.password}"
slack_verification_token = "${data.pass_password.outline_slack_verification_token.password}"
hostname = "outline.${var.root-domain}"
}
# module "outline" {
# source = "modules/outline"
# smtp_password = "${data.pass_password.outline_smtp_password.password}"
# secret_key = "${data.pass_password.outline_secret_key.password}"
# slack_key = "${data.pass_password.outline_slack_key.password}"
# slack_secret = "${data.pass_password.outline_slack_secret.password}"
# slack_app_id = "${data.pass_password.outline_slack_app_id.password}"
# slack_verification_token = "${data.pass_password.outline_slack_verification_token.password}"
# hostname = "outline.${var.root-domain}"
# }

+ 23
- 27
pulse.tf View File

@ -1,28 +1,24 @@
module "pulse-pshtt" {
name = "pulse-pshtt"
source = "modules/container"
image = "dhsncats/pshtt:0.5.2"
# module "pulse-pshtt" {
# name = "pulse-pshtt"
# source = "modules/container"
# image = "dhsncats/pshtt:0.5.2"
# volumes = [
# {
# host_path = "/mnt/xwing/data/pulse"
# container_path = "/home/pshtt"
# },
# ]
# web {
# expose = false
# host = ""
# }
# command = ["--debug", "--timeout=3", "--cache-third-parties=./cache", "domains.csv"]
# must_run = "false"
# restart = "no"
# # nameserver = "192.168.1.1"
# networks = ["bridge"]
# resource = {
# memory = 2048
# }
# }
volumes = [
{
host_path = "/mnt/xwing/data/pulse"
container_path = "/home/pshtt"
},
]
web {
expose = false
host = ""
}
command = ["--debug", "--timeout=3", "--cache-third-parties=./cache", "domains.csv"]
must_run = "false"
restart = "no"
# nameserver = "192.168.1.1"
networks = ["bridge"]
resource = {
memory = 2048
}
}

+ 0
- 14
requestbin.tf View File

@ -1,14 +0,0 @@
module "requestbin" {
name = "requestbin"
source = "./modules/container"
image = "jankysolutions/requestbin:latest"
// Default is port 80
web {
expose = true
port = "8000"
host = "requestbin.${var.root-domain}"
}
networks = "${list(module.docker.traefik-network-id)}"
}

Loading…
Cancel
Save