Split addy into rootless Quadlets with health checks and Traefik routing

This commit is contained in:
Tyr3al committed 2026-10-28 18:33:53 +01:00
1 parent e032b0e554
commit 72a5ad0687
18 files changed
+268 -173

No files matched your search

+39
View File
@@ -0,0 +1,39 @@
[Unit]
Description=Addy email forwarding
Wants=addy-db.service addy-redis.service
After=addy-db.service addy-redis.service
StartLimitIntervalSec=0
[Container]
Image=docker.io/anonaddy/anonaddy:latest
AutoUpdate=registry
ContainerName=addy
Network=addy.network
NetworkAlias=addy
Volume=addy-data.volume:/data:Z
Volume=./healthcheck.sh:/usr/local/bin/addy-healthcheck:ro,Z
EnvironmentFile=%h/.config/addy/addy.env
Secret=addy-db-password,type=env,target=DB_PASSWORD
Secret=addy-app-key,type=env,target=APP_KEY
Secret=addy-reply-secret,type=env,target=ANONADDY_SECRET
PublishPort=25:25
HealthCmd=/bin/sh /usr/local/bin/addy-healthcheck
HealthInterval=60s
HealthRetries=3
HealthStartPeriod=180s
HealthTimeout=15s
HealthStartupCmd=/bin/sh /usr/local/bin/addy-healthcheck
HealthStartupInterval=5s
HealthStartupRetries=90
HealthStartupTimeout=15s
Notify=healthy
HealthOnFailure=kill
[Service]
Restart=always
RestartSec=30s
TimeoutStartSec=900
TimeoutStopSec=120
[Install]
WantedBy=default.target