Commit 2ba52589 authored by ijaz ahmad's avatar ijaz ahmad Committed by GitHub
Browse files

deploy ngnix docker container using terraform

parent 2cea054a
provider "docker" {
host = "tcp://docker:2345/"
}
resource "docker_image" "nginx" {
name = "nginx:1.9"
}
resource "docker_container" "nginx-server" {
name = "nginx-server"
image = "${docker_image.nginx.latest}"
ports {
internal = 80
}
volumes {
container_path = "/usr/share/nginx/html"
host_path = "/home/scrapbook/tutorial/www"
read_only = true
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment