example-deployable-app/docker.tf

18 lines
331 B
Terraform
Raw Permalink Normal View History

2024-06-14 02:33:27 +00:00
provider "ssh" {
server = "california.ti"
user = "techinc"
auth = {
private_key = {
content = file("~/.ssh/keys/exploding_bolts_2_rsa")
}
}
}
data "ssh_tunnel" "docker" {
remote = {
socket = "/var/run/docker.sock"
}
}
2024-06-14 02:18:48 +00:00
provider "docker" {
2024-06-14 02:33:27 +00:00
host = "tcp://${data.ssh_tunnel.docker.local.address}"
2024-06-14 02:18:48 +00:00
}