docker
This commit is contained in:
parent
6d4f07e99c
commit
6a5cd4bd00
1 changed files with 16 additions and 0 deletions
16
10_docker/base.tf
Normal file
16
10_docker/base.tf
Normal file
|
@ -0,0 +1,16 @@
|
|||
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
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue