ACL is inbound, not outbound
Diff
main.tf | 6 ++++++
tinyproxy/main.tf | 26 ++++++++++++++++++++++++++
tinyproxy/variables.tf | 3 +++
3 files changed, 35 insertions(+)
@@ -119,6 +119,12 @@
source = "digitalocean"
}
module "tinyproxy" {
source = "tinyproxy"
ips = "${var.ips}"
}
module "abstruse" {
source = "abstruse"
domain = "ci.bb8.fun"
@@ -1,0 +1,26 @@
data "docker_registry_image" "tinyproxy" {
name = "captn3m0/tinyproxy:latest"
}
resource "docker_image" "tinyproxy" {
name = "${data.docker_registry_image.tinyproxy.name}"
pull_triggers = ["${data.docker_registry_image.tinyproxy.sha256_digest}"]
}
resource "docker_container" "tinyproxy" {
name = "tinyproxy"
image = "${docker_image.tinyproxy.latest}"
command = ["ANY"]
ports {
internal = 8888
external = 8888
ip = "${var.ips["tun0"]}"
}
restart = "unless-stopped"
destroy_grace_seconds = 10
must_run = true
}
@@ -1,0 +1,3 @@
variable "ips" {
type = "map"
}