Skip to content

Commit

Permalink
start tf scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
iperoyg committed Aug 9, 2022
1 parent d74f495 commit ddaa91b
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/apicomplexoperations/scripts/terraform_example.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
terraform {
required_providers {
docker = {
source = "kreuzwerker/docker"
version = ">= 2.13.0"
}
}
}

provider "docker" {
host = "npipe:////.//pipe//docker_engine"
}

resource "docker_image" "nginx" {
name = "nginx:latest"
keep_locally = false
}

resource "docker_container" "nginx" {
image = docker_image.nginx.latest
name = "tutorial"
ports {
internal = 80
external = 8000
}
}

0 comments on commit ddaa91b

Please sign in to comment.