1
0
Fork 0
This commit is contained in:
Cedric Girard 2020-05-15 11:28:45 +02:00
parent 6d4f07e99c
commit 6a5cd4bd00
Signed by: X-dark
GPG Key ID: E7D0E125DB9519E4
1 changed files with 16 additions and 0 deletions

16
10_docker/base.tf Normal file
View 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
}
}