Created
          March 10, 2021 07:09 
        
      - 
      
- 
        Save marcaurele/967772451a91ac3e0a7a7442056e5d01 to your computer and use it in GitHub Desktop. 
    Nomad sample job
  
        
  
    
      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
    
  
  
    
  | job "docs" { | |
| datacenters = ["racobro"] | |
| group "example" { | |
| network { | |
| port "http" { | |
| static = "5678" | |
| } | |
| } | |
| task "server" { | |
| driver = "docker" | |
| config { | |
| image = "hashicorp/http-echo" | |
| ports = ["http"] | |
| args = [ | |
| "-listen", | |
| ":5678", | |
| "-text", | |
| "hello world", | |
| ] | |
| } | |
| } | |
| } | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment