2026-10-05 20:59:47 -04:00
|
|
|
# Applies the MealQuest DOCKER-USER rules (/usr/local/sbin/mealquest-firewall).
|
|
|
|
|
#
|
|
|
|
|
# PartOf= re-runs this unit whenever docker.service is stopped or restarted,
|
|
|
|
|
# and WantedBy=docker.service starts it whenever docker.service starts. Both
|
|
|
|
|
# are one-way: a failure here fails this unit visibly and never fails
|
|
|
|
|
# docker.service.
|
|
|
|
|
#
|
2026-10-08 15:16:51 -04:00
|
|
|
# mealquest.service requires this unit and starts the stack only after it
|
|
|
|
|
# has succeeded. Installing and operating both: CTXD project mealquest,
|
|
|
|
|
# RUNBOOKS.MD "Host firewall" and "Stack unit".
|
2026-10-05 20:59:47 -04:00
|
|
|
[Unit]
|
|
|
|
|
Description=Restrict MealQuest port 8090 to Traefik (DOCKER-USER)
|
|
|
|
|
After=docker.service
|
|
|
|
|
Requires=docker.service
|
|
|
|
|
PartOf=docker.service
|
|
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
|
Type=oneshot
|
|
|
|
|
RemainAfterExit=yes
|
|
|
|
|
ExecStart=/usr/local/sbin/mealquest-firewall
|
|
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
|
WantedBy=multi-user.target docker.service
|