Add Mailcatcher Service

This commit is contained in:
2024-02-20 13:17:48 -08:00
parent 7509ca056e
commit 8428e1a269
2 changed files with 43 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
job "mailcatcher" {
datacenters = ["dc1"]
group "mailcatcher" {
count = 1
network {
mode = "bridge"
port "webUI" {
to = 1080
}
}
service {
# Make available to other services by the 'fake-smtp' name
name = "fake-smtp"
port = "1025"
tags = ["traefik.enable=false"] # Hide redis from traefik
connect {
sidecar_service {
tags = ["traefik.enable=false"] # Hide redis envoy from traefik
}
}
}
task "mailcatcher" {
driver = "docker"
config {
image = "sj26/mailcatcher:latest"
ports = ["webUI"]
}
}
}
}