17 lines
261 B
Terraform
17 lines
261 B
Terraform
|
provider "docker" {
|
||
|
host = "ssh://ubuntu@3.9.10.22:22"
|
||
|
}
|
||
|
|
||
|
resource "docker_image" "nginx" {
|
||
|
name = "nginx:latest"
|
||
|
}
|
||
|
|
||
|
resource "docker_container" "web" {
|
||
|
name = "foo"
|
||
|
image = docker_image.nginx.latest
|
||
|
ports {
|
||
|
internal = 80
|
||
|
external = 80
|
||
|
}
|
||
|
}
|