General Updates
This commit is contained in:
parent
da53ac8f1a
commit
2b2b68f722
|
@ -1,7 +1,7 @@
|
||||||
# https://github.com/go-gitea/gitea/releases
|
# https://github.com/go-gitea/gitea/releases
|
||||||
data "docker_registry_image" "gitea" {
|
data "docker_registry_image" "gitea" {
|
||||||
# not bleeding, this is hemorrhaging edge
|
# not bleeding, this is hemorrhaging edge
|
||||||
name = "gitea/gitea:1.8"
|
name = "gitea/gitea:1.9"
|
||||||
}
|
}
|
||||||
|
|
||||||
data "docker_registry_image" "redis" {
|
data "docker_registry_image" "redis" {
|
||||||
|
|
34
heimdall.tf
34
heimdall.tf
|
@ -1,19 +1,17 @@
|
||||||
module "heimdall" {
|
# module "heimdall" {
|
||||||
name = "heimdall"
|
# name = "heimdall"
|
||||||
source = "modules/container"
|
# source = "modules/container"
|
||||||
image = "linuxserver/heimdall:latest"
|
# 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",
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
24
jupyter.tf
24
jupyter.tf
|
@ -1,13 +1,13 @@
|
||||||
module "jupyter" {
|
# module "jupyter" {
|
||||||
name = "jupyter"
|
# name = "jupyter"
|
||||||
source = "modules/container"
|
# source = "modules/container"
|
||||||
image = "jupyter/tensorflow-notebook"
|
# image = "jupyter/tensorflow-notebook"
|
||||||
|
# ports = [
|
||||||
|
# {
|
||||||
|
# internal = 8888
|
||||||
|
# external = 1112
|
||||||
|
# ip = "${var.ips["tun0"]}"
|
||||||
|
# },
|
||||||
|
# ]
|
||||||
|
# }
|
||||||
|
|
||||||
ports = [
|
|
||||||
{
|
|
||||||
internal = 8888
|
|
||||||
external = 1112
|
|
||||||
ip = "${var.ips["tun0"]}"
|
|
||||||
},
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
28
main.tf
28
main.tf
|
@ -63,13 +63,13 @@ module "radicale" {
|
||||||
domain = "radicale.bb8.fun"
|
domain = "radicale.bb8.fun"
|
||||||
}
|
}
|
||||||
|
|
||||||
module "resilio" {
|
# module "resilio" {
|
||||||
source = "resilio"
|
# source = "resilio"
|
||||||
domain = "sync.bb8.fun"
|
# domain = "sync.bb8.fun"
|
||||||
traefik-labels = "${var.traefik-common-labels}"
|
# traefik-labels = "${var.traefik-common-labels}"
|
||||||
ips = "${var.ips}"
|
# ips = "${var.ips}"
|
||||||
traefik-network-id = "${module.docker.traefik-network-id}"
|
# traefik-network-id = "${module.docker.traefik-network-id}"
|
||||||
}
|
# }
|
||||||
|
|
||||||
module "media" {
|
module "media" {
|
||||||
source = "media"
|
source = "media"
|
||||||
|
@ -100,9 +100,11 @@ module "digitalocean" {
|
||||||
# ips = "${var.ips}"
|
# ips = "${var.ips}"
|
||||||
# }
|
# }
|
||||||
|
|
||||||
module "abstruse" {
|
|
||||||
source = "abstruse"
|
# module "abstruse" {
|
||||||
domain = "ci.bb8.fun"
|
# source = "abstruse"
|
||||||
traefik-labels = "${var.traefik-common-labels}"
|
# domain = "ci.bb8.fun"
|
||||||
traefik-network-id = "${module.docker.traefik-network-id}"
|
# traefik-labels = "${var.traefik-common-labels}"
|
||||||
}
|
# traefik-network-id = "${module.docker.traefik-network-id}"
|
||||||
|
# }
|
||||||
|
|
||||||
|
|
|
@ -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)}"
|
||||||
|
}
|
|
@ -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)}"
|
||||||
|
}
|
121
monicahq.tf
121
monicahq.tf
|
@ -1,65 +1,58 @@
|
||||||
module "monicahq-container" {
|
# module "monicahq-container" {
|
||||||
name = "monica"
|
# name = "monica"
|
||||||
source = "modules/container"
|
# source = "modules/container"
|
||||||
image = "monicahq/monicahq:latest"
|
# 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}"
|
|
||||||
}
|
|
||||||
|
|
21
outline.tf
21
outline.tf
|
@ -1,10 +1,11 @@
|
||||||
module "outline" {
|
# module "outline" {
|
||||||
source = "modules/outline"
|
# source = "modules/outline"
|
||||||
smtp_password = "${data.pass_password.outline_smtp_password.password}"
|
# smtp_password = "${data.pass_password.outline_smtp_password.password}"
|
||||||
secret_key = "${data.pass_password.outline_secret_key.password}"
|
# secret_key = "${data.pass_password.outline_secret_key.password}"
|
||||||
slack_key = "${data.pass_password.outline_slack_key.password}"
|
# slack_key = "${data.pass_password.outline_slack_key.password}"
|
||||||
slack_secret = "${data.pass_password.outline_slack_secret.password}"
|
# slack_secret = "${data.pass_password.outline_slack_secret.password}"
|
||||||
slack_app_id = "${data.pass_password.outline_slack_app_id.password}"
|
# slack_app_id = "${data.pass_password.outline_slack_app_id.password}"
|
||||||
slack_verification_token = "${data.pass_password.outline_slack_verification_token.password}"
|
# slack_verification_token = "${data.pass_password.outline_slack_verification_token.password}"
|
||||||
hostname = "outline.${var.root-domain}"
|
# hostname = "outline.${var.root-domain}"
|
||||||
}
|
# }
|
||||||
|
|
||||||
|
|
50
pulse.tf
50
pulse.tf
|
@ -1,28 +1,24 @@
|
||||||
module "pulse-pshtt" {
|
# module "pulse-pshtt" {
|
||||||
name = "pulse-pshtt"
|
# name = "pulse-pshtt"
|
||||||
source = "modules/container"
|
# source = "modules/container"
|
||||||
image = "dhsncats/pshtt:0.5.2"
|
# 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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -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…
Reference in New Issue