remove lychee and stringer
This commit is contained in:
parent
2b2b68f722
commit
8900b2d2be
|
@ -1,37 +1,31 @@
|
||||||
resource "docker_container" "lychee" {
|
# resource "docker_container" "lychee" {
|
||||||
name = "lychee"
|
# name = "lychee"
|
||||||
image = "${docker_image.lychee.latest}"
|
# image = "${docker_image.lychee.latest}"
|
||||||
|
# restart = "unless-stopped"
|
||||||
|
# destroy_grace_seconds = 10
|
||||||
|
# must_run = true
|
||||||
|
# volumes {
|
||||||
|
# host_path = "/mnt/xwing/config/lychee"
|
||||||
|
# container_path = "/config"
|
||||||
|
# }
|
||||||
|
# volumes {
|
||||||
|
# host_path = "/mnt/xwing/data/lychee"
|
||||||
|
# container_path = "/pictures"
|
||||||
|
# }
|
||||||
|
# upload {
|
||||||
|
# content = "${file("${path.module}/conf/lychee.php.ini")}"
|
||||||
|
# file = "/config/lychee/user.ini"
|
||||||
|
# }
|
||||||
|
# labels = "${merge(
|
||||||
|
# local.traefik_common_labels,
|
||||||
|
# map(
|
||||||
|
# "traefik.port", 80,
|
||||||
|
# "traefik.frontend.rule", "Host:pics.${var.domain}",
|
||||||
|
# ))}"
|
||||||
|
# env = [
|
||||||
|
# "PUID=986",
|
||||||
|
# "PGID=984",
|
||||||
|
# ]
|
||||||
|
# # links = ["${var.links-mariadb}"]
|
||||||
|
# }
|
||||||
|
|
||||||
restart = "unless-stopped"
|
|
||||||
destroy_grace_seconds = 10
|
|
||||||
must_run = true
|
|
||||||
|
|
||||||
volumes {
|
|
||||||
host_path = "/mnt/xwing/config/lychee"
|
|
||||||
container_path = "/config"
|
|
||||||
}
|
|
||||||
|
|
||||||
volumes {
|
|
||||||
host_path = "/mnt/xwing/data/lychee"
|
|
||||||
container_path = "/pictures"
|
|
||||||
}
|
|
||||||
|
|
||||||
upload {
|
|
||||||
content = "${file("${path.module}/conf/lychee.php.ini")}"
|
|
||||||
file = "/config/lychee/user.ini"
|
|
||||||
}
|
|
||||||
|
|
||||||
labels = "${merge(
|
|
||||||
local.traefik_common_labels,
|
|
||||||
map(
|
|
||||||
"traefik.port", 80,
|
|
||||||
"traefik.frontend.rule", "Host:pics.${var.domain}",
|
|
||||||
))}"
|
|
||||||
|
|
||||||
env = [
|
|
||||||
"PUID=986",
|
|
||||||
"PGID=984",
|
|
||||||
]
|
|
||||||
|
|
||||||
# links = ["${var.links-mariadb}"]
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
output "lychee-ip" {
|
# output "lychee-ip" {
|
||||||
value = "${docker_container.lychee.ip_address}"
|
# value = "${docker_container.lychee.ip_address}"
|
||||||
}
|
# }
|
||||||
|
|
||||||
output "names-traefik" {
|
output "names-traefik" {
|
||||||
value = "${docker_container.traefik.name}"
|
value = "${docker_container.traefik.name}"
|
||||||
|
|
56
stringer.tf
56
stringer.tf
|
@ -4,33 +4,39 @@ module "stringer-db" {
|
||||||
password = "${data.pass_password.stringer-db-password.password}"
|
password = "${data.pass_password.stringer-db-password.password}"
|
||||||
}
|
}
|
||||||
|
|
||||||
module "stringer-container" {
|
# module "stringer-container" {
|
||||||
name = "stringer"
|
# name = "stringer"
|
||||||
source = "modules/container"
|
# source = "modules/container"
|
||||||
image = "mdswanson/stringer"
|
# image = "mdswanson/stringer"
|
||||||
|
|
||||||
resource {
|
|
||||||
memory = 256
|
|
||||||
memory_swap = 256
|
|
||||||
}
|
|
||||||
|
|
||||||
web {
|
# resource {
|
||||||
expose = true
|
# memory = 256
|
||||||
port = 8080
|
# memory_swap = 256
|
||||||
host = "stringer.bb8.fun"
|
# }
|
||||||
}
|
|
||||||
|
|
||||||
networks = "${list(
|
|
||||||
data.docker_network.bridge.id,
|
|
||||||
module.docker.traefik-network-id,
|
|
||||||
module.db.postgres-network-id
|
|
||||||
)}"
|
|
||||||
|
|
||||||
env = [
|
# web {
|
||||||
# "DATABASE_URL=postgres://stringer:${data.pass_password.stringer-db-password.password}@postgres:5432/stringer",
|
# expose = true
|
||||||
"DATABASE_URL=sqlite3:':memory:'",
|
# port = 8080
|
||||||
|
# host = "stringer.bb8.fun"
|
||||||
|
# }
|
||||||
|
|
||||||
|
|
||||||
|
# networks = "${list(
|
||||||
|
# data.docker_network.bridge.id,
|
||||||
|
# module.docker.traefik-network-id,
|
||||||
|
# module.db.postgres-network-id
|
||||||
|
# )}"
|
||||||
|
|
||||||
|
|
||||||
|
# env = [
|
||||||
|
# # "DATABASE_URL=postgres://stringer:${data.pass_password.stringer-db-password.password}@postgres:5432/stringer",
|
||||||
|
# "DATABASE_URL=sqlite3:':memory:'",
|
||||||
|
|
||||||
|
|
||||||
|
# "SECRET_TOKEN=${data.pass_password.stringer-secret-token.password}",
|
||||||
|
# "RACK_ENV=development",
|
||||||
|
# ]
|
||||||
|
# }
|
||||||
|
|
||||||
"SECRET_TOKEN=${data.pass_password.stringer-secret-token.password}",
|
|
||||||
"RACK_ENV=development",
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue