Browse Source

Get opml back

kaarana-wordpress
Nemo 2 years ago
parent
commit
3bc9e40b61
  1. 1
      modules/container/main.tf
  2. 5
      modules/container/vars.tf
  3. 3
      opml/main.tf
  4. 12
      opml/redis.tf

1
modules/container/main.tf

@ -5,6 +5,7 @@ data "docker_registry_image" "image" {
resource "docker_image" "image" {
name = "${var.image}"
pull_triggers = ["${data.docker_registry_image.image.sha256_digest}"]
keep_locally = "${var.keep_image}"
}
data "docker_network" "traefik" {

5
modules/container/vars.tf

@ -116,3 +116,8 @@ variable "dns" {
type = "list"
default = []
}
variable "keep_image" {
description = "keep image, don't delete"
default = false
}

3
opml/main.tf

@ -16,6 +16,7 @@ module "opml" {
]
resource {
memory = 256
memory = 256
memory_swap = 256
}
}

12
opml/redis.tf

@ -1,8 +1,9 @@
module "redis" {
name = "opml-redis"
source = "../modules/container"
image = "redis:alpine"
networks = ["${docker_network.opml.id}"]
name = "opml-redis"
source = "../modules/container"
image = "redis:alpine"
networks = ["${docker_network.opml.id}"]
keep_image = true
# ThisSucks
web {
@ -10,6 +11,7 @@ module "redis" {
}
resource {
memory = 256
memory = 256
memory_swap = 256
}
}
Loading…
Cancel
Save