Added mitmproxy. Disabled mitmproxy.
Some checks failed
Trunk Check / Trunk Check Runner (push) Failing after 1s
Some checks failed
Trunk Check / Trunk Check Runner (push) Failing after 1s
This commit is contained in:
parent
35536c16d0
commit
d3acd365cc
1 changed files with 44 additions and 0 deletions
44
mitmproxy.tf_
Normal file
44
mitmproxy.tf_
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
data "docker_registry_image" "mitmproxy" {
|
||||||
|
name = "ghcr.io/benzine-framework/mitmproxy:10.1.1"
|
||||||
|
}
|
||||||
|
resource "docker_service" "mitmproxy" {
|
||||||
|
name = "mitmproxy"
|
||||||
|
task_spec {
|
||||||
|
container_spec {
|
||||||
|
image = "${data.docker_registry_image.mitmproxy.name}@${data.docker_registry_image.mitmproxy.sha256_digest}"
|
||||||
|
command = [
|
||||||
|
"mitmweb",
|
||||||
|
"--web-host", "0.0.0.0",
|
||||||
|
"--web-port", "8081",
|
||||||
|
#"--listen-host", "0.0.0.0",
|
||||||
|
#"--listen-port", "8080",
|
||||||
|
"--ssl-insecure",
|
||||||
|
]
|
||||||
|
#healthcheck {
|
||||||
|
# test = ["CMD-SHELL", " curl -I -x http://localhost:8080 -k http://172.17.0.1 || exit 1"]
|
||||||
|
# start_period = "10s"
|
||||||
|
# interval = "10s"
|
||||||
|
# timeout = "5s"
|
||||||
|
# retries = 5
|
||||||
|
#}
|
||||||
|
}
|
||||||
|
restart_policy {
|
||||||
|
condition = "any"
|
||||||
|
delay = "0s"
|
||||||
|
window = "0s"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
endpoint_spec {
|
||||||
|
ports {
|
||||||
|
target_port = 8081
|
||||||
|
published_port = 8081
|
||||||
|
publish_mode = "ingress"
|
||||||
|
}
|
||||||
|
ports {
|
||||||
|
target_port = 8080
|
||||||
|
published_port = 8080
|
||||||
|
publish_mode = "ingress"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Reference in a new issue