Created
August 4, 2018 10:10
-
-
Save garethr/1f8f06252b0aba89fe6ba6d6f9faad14 to your computer and use it in GitHub Desktop.
Experimenting with an HCL definition for Compose
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
object { | |
attr "version" { | |
type = string | |
required = true | |
} | |
block_map "services" { | |
block_type = "service" | |
labels = ["name"] | |
object { | |
attr "image" { | |
type = string | |
} | |
attr "build" { | |
type = string | |
} | |
attr "ports" { | |
type = list(string) | |
} | |
} | |
} | |
} |
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
version = "3" | |
service "web" { | |
build = "." | |
ports = ["5000:5000"] | |
} | |
service "redis" { | |
image = "redis:alpine" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment