2023-08-25 00:01:10 +02:00
|
|
|
---
|
|
|
|
|
2023-12-21 23:22:39 +01:00
|
|
|
# The Nomad job name
|
|
|
|
instance: smtp-relay
|
|
|
|
|
2023-08-25 00:01:10 +02:00
|
|
|
mail:
|
|
|
|
relay:
|
|
|
|
# The image to use
|
2024-05-02 13:56:55 +02:00
|
|
|
image: '[[ .docker.repo ]]exim-relay:24.5-1'
|
2023-08-25 00:01:10 +02:00
|
|
|
|
|
|
|
# Number of instances to run
|
|
|
|
count: 1
|
|
|
|
|
2024-01-31 16:19:36 +01:00
|
|
|
# Resources to allocate
|
2023-08-25 00:01:10 +02:00
|
|
|
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
|
2023-10-08 17:39:33 +02:00
|
|
|
user: smtp@example.org
|
2024-01-31 16:19:36 +01:00
|
|
|
password: '{{ with secret "[[ .vault.root ]]kv/service/[[ .instance ]]" }}{{ .Data.data.pwd }}{{ end }}'
|
2023-08-25 00:01:10 +02:00
|
|
|
|
|
|
|
# The volume to use for /var/spool/postfix
|
|
|
|
volume:
|
|
|
|
type: csi
|
|
|
|
source: smtp-relay
|