33 lines
634 B
YAML
33 lines
634 B
YAML
---
|
|
|
|
# The Nomad job name
|
|
instance: smtp-relay
|
|
|
|
mail:
|
|
relay:
|
|
# The image to use
|
|
image: '[[ .docker.repo ]]exim-relay:24.5-1'
|
|
|
|
# Number of instances to run
|
|
count: 1
|
|
|
|
# Resources to allocate
|
|
resources:
|
|
cpu: 10
|
|
memory: 20
|
|
|
|
# Optional additional env vars to pass
|
|
env: {}
|
|
|
|
# The SMTP relay to use
|
|
host: smtp.example.org
|
|
port: 587
|
|
tls: True
|
|
user: smtp@example.org
|
|
password: '{{ with secret "[[ .vault.root ]]kv/service/[[ .instance ]]" }}{{ .Data.data.pwd }}{{ end }}'
|
|
|
|
# The volume to use for /var/spool/postfix
|
|
volume:
|
|
type: csi
|
|
source: smtp-relay
|