Browse Source

remove lychee and stringer

kaarana-wordpress
Nemo 1 year ago
parent
commit
8900b2d2be
3 changed files with 69 additions and 69 deletions
  1. +30
    -36
      docker/lychee.tf
  2. +3
    -3
      docker/outputs.tf
  3. +36
    -30
      stringer.tf

+ 30
- 36
docker/lychee.tf View File

@ -1,37 +1,31 @@
resource "docker_container" "lychee" {
name = "lychee"
image = "${docker_image.lychee.latest}"
# resource "docker_container" "lychee" {
# name = "lychee"
# 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}"]
}

+ 3
- 3
docker/outputs.tf View File

@ -1,6 +1,6 @@
output "lychee-ip" {
value = "${docker_container.lychee.ip_address}"
}
# output "lychee-ip" {
# value = "${docker_container.lychee.ip_address}"
# }
output "names-traefik" {
value = "${docker_container.traefik.name}"


+ 36
- 30
stringer.tf View File

@ -4,33 +4,39 @@ module "stringer-db" {
password = "${data.pass_password.stringer-db-password.password}"
}
module "stringer-container" {
name = "stringer"
source = "modules/container"
image = "mdswanson/stringer"
resource {
memory = 256
memory_swap = 256
}
web {
expose = true
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",
]
}
# module "stringer-container" {
# name = "stringer"
# source = "modules/container"
# image = "mdswanson/stringer"
# resource {
# memory = 256
# memory_swap = 256
# }
# web {
# expose = true
# 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",
# ]
# }

Loading…
Cancel
Save