Created
March 29, 2018 06:53
-
-
Save derekm1215/7c7810ea791328d6e6a962c6f4a69131 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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