mirror of
https://github.com/KumoCorp/kumomta.git
synced 2026-08-19 08:01:07 +00:00
30 lines
926 B
YAML
30 lines
926 B
YAML
services:
|
|
kumod:
|
|
container_name: kumod
|
|
hostname: kumod
|
|
# use the latest build from `main`
|
|
image: ghcr.io/kumocorp/kumomta-dev:latest
|
|
# alternatively, use the latest stable release
|
|
#image: ghcr.io/kumocorp/kumomta:latest
|
|
volumes:
|
|
- ./policy:/opt/kumomta/etc/policy
|
|
restart: unless-stopped
|
|
ports:
|
|
- 25:2525
|
|
depends_on:
|
|
tsa:
|
|
condition: service_healthy
|
|
tsa:
|
|
container_name: kumo-tsa
|
|
hostname: tsa # The kumod policy scripts rely on this name
|
|
image: ghcr.io/kumocorp/kumomta-dev:latest
|
|
command: runuser -u kumod -- /opt/kumomta/sbin/tsa-daemon --policy /opt/kumomta/etc/policy/tsa_init.lua
|
|
volumes:
|
|
- ./policy:/opt/kumomta/etc/policy
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: /opt/kumomta/sbin/validate-shaping /opt/kumomta/etc/policy/shaping.toml || exit 1
|
|
interval: 1s
|
|
timeout: 2s
|
|
retries: 3
|