Created
April 28, 2019 12:02
-
-
Save stevenfrst/ad787000fc62c170e4ca5caa0b11b7fa to your computer and use it in GitHub Desktop.
This file contains hidden or 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
resource "docker_image" "httpd" { | |
name = "httpd" | |
} | |
resource "docker_container" "httpd" { | |
name = "httpd-2" | |
image = "${docker_image.httpd.latest}" | |
ports { | |
internal = 80 | |
external = 8282 | |
} | |
volumes { | |
host_path = "/data/web" | |
container_path = "/usr/local/apache2/htdocs/" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment