2017-11-04 13:39:32 +00:00
|
|
|
resource docker_container "transmission" {
|
|
|
|
name = "transmission"
|
|
|
|
image = "${docker_image.transmission.latest}"
|
|
|
|
|
2017-11-07 19:31:12 +00:00
|
|
|
labels {
|
2017-12-26 13:55:43 +00:00
|
|
|
"traefik.frontend.auth.basic" = "${var.basic_auth}"
|
|
|
|
"traefik.port" = 9091
|
|
|
|
"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.customResponseHeaders" = "${var.xpoweredby}"
|
2017-12-24 07:37:06 +00:00
|
|
|
"traefik.frontend.headers.customFrameOptionsValue" = "${var.xfo_allow}"
|
2017-11-04 13:39:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ports {
|
|
|
|
internal = 51413
|
|
|
|
external = 51413
|
2017-12-26 15:20:52 +00:00
|
|
|
ip = "${var.ips["eth0"]}"
|
2017-11-04 13:39:32 +00:00
|
|
|
protocol = "udp"
|
|
|
|
}
|
|
|
|
|
|
|
|
volumes {
|
|
|
|
host_path = "/mnt/xwing/config/transmission"
|
|
|
|
container_path = "/config"
|
|
|
|
}
|
|
|
|
|
|
|
|
volumes {
|
|
|
|
host_path = "/mnt/xwing/media/DL"
|
|
|
|
container_path = "/downloads"
|
|
|
|
}
|
|
|
|
|
|
|
|
volumes {
|
|
|
|
host_path = "/mnt/xwing/data/watch/transmission"
|
|
|
|
container_path = "/watch"
|
|
|
|
}
|
|
|
|
|
2017-11-18 21:47:55 +00:00
|
|
|
upload {
|
|
|
|
content = "${file("${path.module}/conf/transmission.json")}"
|
|
|
|
file = "/config/settings.json"
|
|
|
|
}
|
|
|
|
|
2017-11-04 13:39:32 +00:00
|
|
|
env = [
|
|
|
|
"PGID=1003",
|
|
|
|
"PUID=1000",
|
|
|
|
"TZ=Asia/Kolkata",
|
|
|
|
]
|
|
|
|
|
2017-12-26 13:55:43 +00:00
|
|
|
memory = 256
|
|
|
|
restart = "unless-stopped"
|
2017-11-07 18:44:30 +00:00
|
|
|
destroy_grace_seconds = 10
|
2017-12-26 13:55:43 +00:00
|
|
|
must_run = true
|
2017-11-04 13:39:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
resource "docker_container" "emby" {
|
|
|
|
name = "emby"
|
|
|
|
image = "${docker_image.emby.latest}"
|
|
|
|
|
|
|
|
volumes {
|
|
|
|
host_path = "/mnt/xwing/config/emby"
|
|
|
|
container_path = "/config"
|
|
|
|
}
|
|
|
|
|
|
|
|
volumes {
|
|
|
|
host_path = "/mnt/xwing/media"
|
|
|
|
container_path = "/media"
|
|
|
|
}
|
|
|
|
|
2017-11-07 19:31:12 +00:00
|
|
|
labels {
|
2017-12-26 15:20:52 +00:00
|
|
|
"traefik.frontend.rule" = "Host:emby.in.${var.domain},emby.${var.domain}"
|
2017-12-26 13:55:43 +00:00
|
|
|
"traefik.frontend.passHostHeader" = "true"
|
|
|
|
"traefik.frontend.auth.basic" = "${var.basic_auth}"
|
|
|
|
"traefik.port" = 8096
|
|
|
|
"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.customResponseHeaders" = "${var.xpoweredby}"
|
2017-12-24 07:37:06 +00:00
|
|
|
"traefik.frontend.headers.customFrameOptionsValue" = "${var.xfo_allow}"
|
2017-11-04 13:39:32 +00:00
|
|
|
}
|
|
|
|
|
2017-12-26 13:55:43 +00:00
|
|
|
memory = 2048
|
|
|
|
restart = "unless-stopped"
|
2017-11-07 18:44:30 +00:00
|
|
|
destroy_grace_seconds = 10
|
2017-12-26 13:55:43 +00:00
|
|
|
must_run = true
|
2017-11-04 13:39:32 +00:00
|
|
|
|
|
|
|
# Running as lounge:tatooine
|
|
|
|
env = [
|
|
|
|
"APP_USER=lounge",
|
|
|
|
"APP_UID=1004",
|
|
|
|
"APP_GID=1003",
|
|
|
|
"APP_CONFIG=/mnt/xwing/config",
|
|
|
|
"TZ=Asia/Kolkata",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "docker_container" "couchpotato" {
|
|
|
|
name = "couchpotato"
|
|
|
|
image = "${docker_image.couchpotato.latest}"
|
|
|
|
|
|
|
|
volumes {
|
|
|
|
host_path = "/mnt/xwing/config/couchpotato"
|
|
|
|
container_path = "/config"
|
|
|
|
}
|
|
|
|
|
|
|
|
volumes {
|
|
|
|
host_path = "/mnt/xwing/media/DL"
|
|
|
|
container_path = "/downloads"
|
|
|
|
}
|
|
|
|
|
|
|
|
volumes {
|
|
|
|
host_path = "/mnt/xwing/media/Movies"
|
|
|
|
container_path = "/movies"
|
|
|
|
}
|
|
|
|
|
2017-11-07 19:31:12 +00:00
|
|
|
labels {
|
2017-12-26 13:55:43 +00:00
|
|
|
"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.customResponseHeaders" = "${var.xpoweredby}"
|
2017-12-24 07:37:06 +00:00
|
|
|
"traefik.frontend.headers.customFrameOptionsValue" = "${var.xfo_allow}"
|
2017-11-04 13:39:32 +00:00
|
|
|
}
|
|
|
|
|
2017-12-26 13:55:43 +00:00
|
|
|
memory = 256
|
|
|
|
restart = "unless-stopped"
|
2017-11-07 18:44:30 +00:00
|
|
|
destroy_grace_seconds = 10
|
2017-12-26 13:55:43 +00:00
|
|
|
must_run = true
|
2017-11-04 13:39:32 +00:00
|
|
|
|
|
|
|
# Running as lounge:tatooine
|
|
|
|
env = [
|
|
|
|
"PUID=1004",
|
|
|
|
"PGID=1003",
|
|
|
|
"TZ=Asia/Kolkata",
|
|
|
|
]
|
2017-12-05 17:58:14 +00:00
|
|
|
|
|
|
|
links = ["transmission"]
|
2017-11-04 13:39:32 +00:00
|
|
|
}
|
2017-11-04 21:27:00 +00:00
|
|
|
|
2017-11-18 11:40:02 +00:00
|
|
|
resource "docker_container" "airsonic" {
|
|
|
|
name = "airsonic"
|
|
|
|
image = "${docker_image.airsonic.latest}"
|
|
|
|
|
2017-12-26 13:55:43 +00:00
|
|
|
restart = "unless-stopped"
|
2017-11-18 11:40:02 +00:00
|
|
|
destroy_grace_seconds = 30
|
2017-12-26 13:55:43 +00:00
|
|
|
must_run = true
|
|
|
|
user = "1004"
|
|
|
|
memory = 800
|
2017-11-18 11:40:02 +00:00
|
|
|
|
|
|
|
volumes {
|
|
|
|
host_path = "/mnt/xwing/config/airsonic/data"
|
|
|
|
container_path = "/airsonic/data"
|
|
|
|
}
|
|
|
|
|
|
|
|
volumes {
|
|
|
|
host_path = "/mnt/xwing/media/Music"
|
|
|
|
container_path = "/airsonic/music"
|
|
|
|
}
|
|
|
|
|
|
|
|
volumes {
|
|
|
|
host_path = "/mnt/xwing/config/airsonic/playlists"
|
|
|
|
container_path = "/airsonic/playlists"
|
|
|
|
}
|
|
|
|
|
|
|
|
volumes {
|
|
|
|
host_path = "/mnt/xwing/config/airsonic/podcasts"
|
|
|
|
container_path = "/airsonic/podcasts"
|
|
|
|
}
|
|
|
|
|
|
|
|
labels {
|
2017-12-26 15:20:52 +00:00
|
|
|
"traefik.frontend.rule" = "Host:airsonic.in.${var.domain},airsonic.${var.domain}"
|
2017-12-26 13:55:43 +00:00
|
|
|
"traefik.frontend.passHostHeader" = "true"
|
|
|
|
"traefik.port" = 4040
|
|
|
|
"traefik.enable" = "true"
|
|
|
|
"traefik.frontend.headers.SSLTemporaryRedirect" = "true"
|
|
|
|
"traefik.frontend.headers.STSSeconds" = "2592000"
|
|
|
|
"traefik.frontend.headers.STSIncludeSubdomains" = "false"
|
|
|
|
"traefik.frontend.headers.customResponseHeaders" = "${var.xpoweredby}"
|
2017-12-24 07:37:06 +00:00
|
|
|
"traefik.frontend.headers.customFrameOptionsValue" = "${var.xfo_allow}"
|
2017-11-18 11:40:02 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-12-03 14:52:14 +00:00
|
|
|
resource "docker_container" "headerdebug" {
|
|
|
|
name = "headerdebug"
|
|
|
|
image = "${docker_image.headerdebug.latest}"
|
|
|
|
|
2017-12-26 13:55:43 +00:00
|
|
|
restart = "unless-stopped"
|
2017-12-03 14:52:14 +00:00
|
|
|
destroy_grace_seconds = 30
|
2017-12-26 13:55:43 +00:00
|
|
|
must_run = true
|
2017-12-03 14:52:14 +00:00
|
|
|
|
2017-12-03 15:05:11 +00:00
|
|
|
memory = 16
|
|
|
|
|
2017-12-03 14:52:14 +00:00
|
|
|
labels {
|
2017-12-26 15:20:52 +00:00
|
|
|
"traefik.frontend.rule" = "Host:debug.in.${var.domain}"
|
2017-12-26 13:55:43 +00:00
|
|
|
"traefik.frontend.passHostHeader" = "true"
|
|
|
|
"traefik.port" = 8080
|
|
|
|
"traefik.enable" = "true"
|
|
|
|
"traefik.frontend.headers.SSLTemporaryRedirect" = "true"
|
|
|
|
"traefik.frontend.headers.STSSeconds" = "2592000"
|
|
|
|
"traefik.frontend.headers.STSIncludeSubdomains" = "false"
|
|
|
|
"traefik.frontend.headers.customResponseHeaders" = "${var.xpoweredby}"
|
2017-12-24 07:37:06 +00:00
|
|
|
"traefik.frontend.headers.customFrameOptionsValue" = "${var.xfo_allow}"
|
2017-12-03 14:52:14 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-11-10 20:46:29 +00:00
|
|
|
resource "docker_container" "sickrage" {
|
|
|
|
name = "sickrage"
|
|
|
|
image = "${docker_image.sickrage.latest}"
|
|
|
|
|
2017-12-26 13:55:43 +00:00
|
|
|
restart = "unless-stopped"
|
2017-11-11 20:01:17 +00:00
|
|
|
destroy_grace_seconds = 10
|
2017-12-26 13:55:43 +00:00
|
|
|
must_run = true
|
2017-11-11 20:01:17 +00:00
|
|
|
|
2017-12-03 15:05:11 +00:00
|
|
|
memory = 512
|
|
|
|
|
2017-11-10 20:46:29 +00:00
|
|
|
volumes {
|
|
|
|
host_path = "/mnt/xwing/config/sickrage"
|
|
|
|
container_path = "/config"
|
|
|
|
}
|
|
|
|
|
|
|
|
volumes {
|
|
|
|
host_path = "/mnt/xwing/media/DL"
|
|
|
|
container_path = "/downloads"
|
|
|
|
}
|
|
|
|
|
|
|
|
volumes {
|
|
|
|
host_path = "/mnt/xwing/media/TV"
|
|
|
|
container_path = "/tv"
|
|
|
|
}
|
|
|
|
|
|
|
|
labels {
|
2017-12-26 13:55:43 +00:00
|
|
|
"traefik.frontend.passHostHeader" = "false"
|
|
|
|
"traefik.frontend.auth.basic" = "${var.basic_auth}"
|
|
|
|
"traefik.port" = 8081
|
|
|
|
"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.customResponseHeaders" = "${var.xpoweredby}"
|
2017-12-24 07:37:06 +00:00
|
|
|
"traefik.frontend.headers.customFrameOptionsValue" = "${var.xfo_allow}"
|
2017-11-10 20:46:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
env = [
|
2017-12-03 14:52:14 +00:00
|
|
|
"PUID=1004",
|
2017-11-10 20:46:29 +00:00
|
|
|
"PGID=1003",
|
|
|
|
"TZ=Asia/Kolkata",
|
|
|
|
]
|
2017-11-26 07:45:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
resource "docker_container" "headphones" {
|
|
|
|
name = "headphones"
|
|
|
|
image = "${docker_image.headphones.latest}"
|
|
|
|
|
2017-12-26 13:55:43 +00:00
|
|
|
restart = "unless-stopped"
|
2017-11-26 07:45:28 +00:00
|
|
|
destroy_grace_seconds = 10
|
2017-12-26 13:55:43 +00:00
|
|
|
must_run = true
|
|
|
|
memory = 128
|
2017-11-26 07:45:28 +00:00
|
|
|
|
|
|
|
volumes {
|
|
|
|
host_path = "/mnt/xwing/config/headphones"
|
|
|
|
container_path = "/config"
|
|
|
|
}
|
|
|
|
|
|
|
|
volumes {
|
|
|
|
host_path = "/mnt/xwing/media/DL"
|
|
|
|
container_path = "/downloads"
|
|
|
|
}
|
|
|
|
|
|
|
|
volumes {
|
|
|
|
host_path = "/mnt/xwing/media/Music"
|
|
|
|
container_path = "/music"
|
|
|
|
}
|
|
|
|
|
2017-12-03 14:52:14 +00:00
|
|
|
upload {
|
|
|
|
content = "${file("${path.module}/conf/headphones.ini")}"
|
|
|
|
file = "/config/config.ini"
|
|
|
|
}
|
|
|
|
|
2017-11-26 07:45:28 +00:00
|
|
|
labels {
|
2017-12-26 13:55:43 +00:00
|
|
|
"traefik.frontend.auth.basic" = "${var.basic_auth}"
|
|
|
|
"traefik.port" = 8181
|
|
|
|
"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.customResponseHeaders" = "${var.xpoweredby}"
|
2017-12-24 07:37:06 +00:00
|
|
|
"traefik.frontend.headers.customFrameOptionsValue" = "${var.xfo_allow}"
|
2017-11-26 07:45:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# lounge:tatooine
|
|
|
|
env = [
|
|
|
|
"PUID=1004",
|
|
|
|
"PGID=1003",
|
|
|
|
"TZ=Asia/Kolkata",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2017-11-30 20:49:35 +00:00
|
|
|
resource "docker_container" "ubooquity" {
|
|
|
|
name = "ubooquity"
|
|
|
|
image = "${docker_image.ubooquity.latest}"
|
|
|
|
|
2017-12-26 13:55:43 +00:00
|
|
|
restart = "unless-stopped"
|
2017-11-30 20:49:35 +00:00
|
|
|
destroy_grace_seconds = 30
|
2017-12-26 13:55:43 +00:00
|
|
|
must_run = true
|
2017-11-30 20:49:35 +00:00
|
|
|
|
|
|
|
volumes {
|
|
|
|
host_path = "/mnt/xwing/config/ubooquity"
|
|
|
|
container_path = "/config"
|
|
|
|
}
|
|
|
|
|
|
|
|
volumes {
|
|
|
|
host_path = "/mnt/xwing/media/EBooks"
|
|
|
|
container_path = "/books"
|
|
|
|
}
|
|
|
|
|
|
|
|
volumes {
|
|
|
|
host_path = "/mnt/xwing/media/EBooks"
|
|
|
|
container_path = "/files"
|
|
|
|
}
|
|
|
|
|
|
|
|
volumes {
|
|
|
|
host_path = "/mnt/xwing/media/EBooks/Comics"
|
|
|
|
container_path = "/comics"
|
|
|
|
}
|
|
|
|
|
|
|
|
labels {
|
|
|
|
"traefik.enable" = "true"
|
|
|
|
|
2017-12-26 13:55:43 +00:00
|
|
|
"traefik.admin.port" = 2203
|
2017-12-26 15:20:52 +00:00
|
|
|
"traefik.admin.frontend.rule" = "Host:library.${var.domain}"
|
2017-11-30 20:49:35 +00:00
|
|
|
"traefik.admin.frontend.auth.basic" = "${var.basic_auth}"
|
|
|
|
|
2017-12-26 13:55:43 +00:00
|
|
|
"traefik.read.port" = 2202
|
2017-12-26 15:20:52 +00:00
|
|
|
"traefik.read.frontend.rule" = "Host:read.${var.domain}"
|
2017-11-30 20:49:35 +00:00
|
|
|
|
2017-12-26 13:55:43 +00:00
|
|
|
"traefik.read.frontend.headers.SSLTemporaryRedirect" = "true"
|
|
|
|
"traefik.read.frontend.headers.STSSeconds" = "2592000"
|
|
|
|
"traefik.read.frontend.headers.STSIncludeSubdomains" = "false"
|
|
|
|
"traefik.read.frontend.headers.contentTypeNosniff" = "true"
|
|
|
|
"traefik.read.frontend.headers.browserXSSFilter" = "true"
|
2017-12-24 09:08:17 +00:00
|
|
|
"traefik.read.frontend.headers.customResponseHeaders" = "${var.xpoweredby}"
|
2017-12-26 13:55:43 +00:00
|
|
|
"traefik.frontend.headers.customFrameOptionsValue" = "${var.xfo_allow}"
|
2017-11-30 20:49:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
upload {
|
|
|
|
content = "${file("${path.module}/conf/ubooquity.json")}"
|
|
|
|
file = "/config/preferences.json"
|
|
|
|
}
|
|
|
|
|
|
|
|
# lounge:tatooine
|
|
|
|
env = [
|
|
|
|
"PUID=1004",
|
|
|
|
"PGID=1003",
|
2017-12-26 13:55:43 +00:00
|
|
|
"MAXMEM=800",
|
2017-11-30 20:49:35 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2017-11-26 07:45:28 +00:00
|
|
|
resource "docker_container" "wiki" {
|
|
|
|
name = "wiki"
|
|
|
|
image = "${docker_image.wikijs.latest}"
|
|
|
|
|
2017-12-26 13:55:43 +00:00
|
|
|
restart = "unless-stopped"
|
2017-11-27 06:29:24 +00:00
|
|
|
destroy_grace_seconds = 30
|
2017-12-26 13:55:43 +00:00
|
|
|
must_run = true
|
|
|
|
memory = 300
|
2017-11-26 07:45:28 +00:00
|
|
|
|
|
|
|
upload {
|
|
|
|
content = "${file("${path.module}/conf/wiki.yml")}"
|
|
|
|
file = "/var/wiki/config.yml"
|
|
|
|
}
|
|
|
|
|
2017-11-26 20:16:49 +00:00
|
|
|
volumes {
|
2017-12-26 13:55:43 +00:00
|
|
|
host_path = "/mnt/xwing/logs/wiki"
|
|
|
|
container_path = "/logs"
|
2017-11-26 07:45:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
volumes {
|
2017-12-26 13:55:43 +00:00
|
|
|
host_path = "/mnt/xwing/data/wiki/repo"
|
|
|
|
container_path = "/repo"
|
2017-11-26 07:45:28 +00:00
|
|
|
}
|
|
|
|
|
2017-11-27 06:29:24 +00:00
|
|
|
volumes {
|
2017-12-26 13:55:43 +00:00
|
|
|
host_path = "/mnt/xwing/data/wiki/data"
|
|
|
|
container_path = "/data"
|
2017-11-27 06:29:24 +00:00
|
|
|
}
|
|
|
|
|
2017-11-26 07:45:28 +00:00
|
|
|
labels {
|
2017-12-26 15:20:52 +00:00
|
|
|
"traefik.frontend.rule" = "Host:wiki.${var.domain}"
|
2017-12-26 13:55:43 +00:00
|
|
|
"traefik.frontend.passHostHeader" = "true"
|
|
|
|
"traefik.port" = 9999
|
|
|
|
"traefik.enable" = "true"
|
|
|
|
"traefik.frontend.headers.SSLTemporaryRedirect" = "true"
|
|
|
|
"traefik.frontend.headers.STSSeconds" = "2592000"
|
|
|
|
"traefik.frontend.headers.STSIncludeSubdomains" = "false"
|
2017-12-24 09:08:17 +00:00
|
|
|
"traefik.frontend.headers.customResponseHeaders" = "${var.xpoweredby}||Referrer-Policy:${var.refpolicy}||X-Frame-Options:${var.xfo_allow}"
|
2017-11-26 07:45:28 +00:00
|
|
|
}
|
|
|
|
|
2017-12-03 14:52:14 +00:00
|
|
|
links = ["mongorocks"]
|
|
|
|
|
2017-11-26 07:45:28 +00:00
|
|
|
env = [
|
|
|
|
"WIKI_ADMIN_EMAIL=me@captnemo.in",
|
2017-12-26 13:55:43 +00:00
|
|
|
"SESSION_SECRET=${var.wiki_session_secret}",
|
2017-11-26 07:45:28 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "docker_container" "muximux" {
|
2017-12-26 13:55:43 +00:00
|
|
|
name = "muximux"
|
|
|
|
image = "${docker_image.muximux.latest}"
|
2017-11-26 20:16:49 +00:00
|
|
|
memory = 64
|
2017-11-26 11:23:34 +00:00
|
|
|
|
2017-12-26 13:55:43 +00:00
|
|
|
restart = "unless-stopped"
|
2017-11-26 07:45:28 +00:00
|
|
|
destroy_grace_seconds = 10
|
2017-12-26 13:55:43 +00:00
|
|
|
must_run = true
|
2017-11-26 07:45:28 +00:00
|
|
|
|
|
|
|
volumes {
|
2017-12-26 13:55:43 +00:00
|
|
|
host_path = "/mnt/xwing/config/muximux"
|
|
|
|
container_path = "/config"
|
2017-11-26 07:45:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
labels {
|
2017-12-26 15:20:52 +00:00
|
|
|
"traefik.frontend.rule" = "Host:home.in.${var.domain},home.${var.domain}"
|
2017-12-26 13:55:43 +00:00
|
|
|
"traefik.frontend.passHostHeader" = "false"
|
|
|
|
"traefik.frontend.auth.basic" = "${var.basic_auth}"
|
|
|
|
"traefik.port" = 80
|
|
|
|
"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"
|
2017-12-24 09:08:17 +00:00
|
|
|
"traefik.frontend.headers.customResponseHeaders" = "${var.xpoweredby}"
|
2017-12-26 13:55:43 +00:00
|
|
|
"traefik.frontend.headers.frameDeny" = "true"
|
2017-11-26 07:45:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# lounge:tatooine
|
|
|
|
env = [
|
|
|
|
"PUID=1004",
|
|
|
|
"PGID=1003",
|
|
|
|
"TZ=Asia/Kolkata",
|
|
|
|
]
|
2017-11-26 11:23:34 +00:00
|
|
|
}
|
2017-12-03 15:17:28 +00:00
|
|
|
|
|
|
|
resource "docker_container" "cadvisor" {
|
2017-12-26 13:55:43 +00:00
|
|
|
name = "cadvisor"
|
|
|
|
image = "${docker_image.cadvisor.latest}"
|
2017-12-17 17:10:20 +00:00
|
|
|
memory = 512
|
2017-12-03 15:17:28 +00:00
|
|
|
|
2017-12-26 13:55:43 +00:00
|
|
|
restart = "unless-stopped"
|
2017-12-03 15:17:28 +00:00
|
|
|
destroy_grace_seconds = 10
|
2017-12-26 13:55:43 +00:00
|
|
|
must_run = true
|
2017-12-03 15:17:28 +00:00
|
|
|
|
|
|
|
volumes {
|
2017-12-26 13:55:43 +00:00
|
|
|
host_path = "/"
|
|
|
|
container_path = "/rootfs"
|
|
|
|
read_only = true
|
2017-12-03 15:17:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
volumes {
|
2017-12-26 13:55:43 +00:00
|
|
|
host_path = "/sys"
|
|
|
|
container_path = "/sys"
|
|
|
|
read_only = true
|
2017-12-03 15:17:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
volumes {
|
2017-12-26 13:55:43 +00:00
|
|
|
host_path = "/var/lib/docker"
|
|
|
|
container_path = "/var/lib/docker"
|
|
|
|
read_only = true
|
2017-12-03 15:17:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
volumes {
|
2017-12-26 13:55:43 +00:00
|
|
|
host_path = "/dev/disk"
|
|
|
|
container_path = "/dev/disk"
|
|
|
|
read_only = true
|
2017-12-03 15:17:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
volumes {
|
2017-12-26 13:55:43 +00:00
|
|
|
host_path = "/var/run"
|
|
|
|
container_path = "/var/run"
|
2017-12-03 15:17:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
labels {
|
2017-12-26 15:20:52 +00:00
|
|
|
"traefik.frontend.rule" = "Host:cadvisor.${var.domain}"
|
2017-12-26 13:55:43 +00:00
|
|
|
"traefik.frontend.auth.basic" = "${var.basic_auth}"
|
|
|
|
"traefik.port" = 8080
|
|
|
|
"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"
|
2017-12-24 07:37:06 +00:00
|
|
|
"traefik.frontend.headers.customFrameOptionsValue" = "${var.xfo_allow}"
|
2017-12-26 13:55:43 +00:00
|
|
|
"traefik.frontend.headers.customResponseHeaders" = "${var.xpoweredby}"
|
2017-12-03 15:17:28 +00:00
|
|
|
}
|
|
|
|
}
|