nomad

HCL and Docker files for Nomad deployments
git clone https://git.in0rdr.ch/nomad.git
Log | Files | Refs | Pull requests

postfix.nomad (460B)


      1 job "postfix" {
      2   datacenters = ["dc1"]
      3 
      4   group "server" {
      5     count = 1
      6 
      7     network {
      8       port "postfix_smtp" {
      9         to = 25
     10       }
     11       port "postfix_submission" {
     12         to = 587
     13       }
     14     }
     15 
     16     task "postfix" {
     17       driver = "podman"
     18 
     19       config {
     20         image = "127.0.0.1:5000/postfix:latest"
     21         ports = ["postfix_smtp", "postfix_submission"]
     22       }
     23 
     24       resources {
     25         memory = 128
     26         cpu    = 100
     27       }
     28     }
     29   }
     30 }