Browse Source

Get opml back

kaarana-wordpress
Nemo 1 year ago
parent
commit
3bc9e40b61
4 changed files with 15 additions and 6 deletions
  1. +1
    -0
      modules/container/main.tf
  2. +5
    -0
      modules/container/vars.tf
  3. +2
    -1
      opml/main.tf
  4. +7
    -5
      opml/redis.tf

+ 1
- 0
modules/container/main.tf View File

@ -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
- 0
modules/container/vars.tf View File

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

+ 2
- 1
opml/main.tf View File

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

+ 7
- 5
opml/redis.tf View File

@ -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