example-deployable-app/docker.tf

17 lines
331 B
HCL

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"
}
}
provider "docker" {
host = "tcp://${data.ssh_tunnel.docker.local.address}"
}