Skip to content

Instantly share code, notes, and snippets.

@derekm1215
Created March 29, 2018 06:53
Show Gist options
  • Save derekm1215/7c7810ea791328d6e6a962c6f4a69131 to your computer and use it in GitHub Desktop.
Save derekm1215/7c7810ea791328d6e6a962c6f4a69131 to your computer and use it in GitHub Desktop.
# Download the latest Ghost image
resource "docker_image" "image_id" {
name = "ghost:latest"
}
# Start the Container
resource "docker_container" "container_id" {
name = "blog"
image = "${docker_image.image_id.latest}"
ports {
internal = "2368"
external = "80"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment