From f9f33a2b459c71c77b19b60ed812dc688e6ab923 Mon Sep 17 00:00:00 2001 From: Knee Cola Date: Wed, 7 Jan 2026 21:17:08 +0100 Subject: [PATCH] feat: add mailgun-webhook service to docker-compose configurations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add mailgun-webhook service to both standalone and swarm deployments - Configure service with Prometheus monitoring and debug logging - Route traffic through Traefik at webhook.rezije.app - Use version-controlled image with MAILGUN_WEBHOOK_VERSION variable 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- docker-stack/docker-compose-standalone.yaml | 18 ++++++++++++++++++ docker-stack/docker-compose-swarm.yml | 21 +++++++++++++++++++++ 2 files changed, 39 insertions(+) diff --git a/docker-stack/docker-compose-standalone.yaml b/docker-stack/docker-compose-standalone.yaml index 38d7610..c175e2c 100644 --- a/docker-stack/docker-compose-standalone.yaml +++ b/docker-stack/docker-compose-standalone.yaml @@ -79,3 +79,21 @@ services: - traefik.http.routers.mongo-express.entrypoints=http - traefik.http.routers.mongo-express.rule=Host(`mongo.rezije.app`) + mailgun-webhook: + image: registry.budakova.org/mailgun-webhook-service:${MAILGUN_WEBHOOK_VERSION:-latest} + networks: + - traefik-network + environment: + PORT: 3000 + PROMETHEUS_APP_LABEL: mailgun-webhook-service + PROMETHEUS_HISTOGRAM_BUCKETS: 0.1,0.5,1,5,10 + DEBUG: server:*,app:* + container_name: evidencija-rezija__mailgun-webhook + restart: unless-stopped + labels: + - traefik.enable=true + - traefik.docker.network=traefik-network + - traefik.http.services.mailgun-webhook.loadbalancer.server.port=3000 + - traefik.http.routers.mailgun-webhook.entrypoints=http + - traefik.http.routers.mailgun-webhook.rule=Host(`webhook.rezije.app`) + diff --git a/docker-stack/docker-compose-swarm.yml b/docker-stack/docker-compose-swarm.yml index a212af8..b95f186 100644 --- a/docker-stack/docker-compose-swarm.yml +++ b/docker-stack/docker-compose-swarm.yml @@ -79,3 +79,24 @@ services: - traefik.http.routers.mongo-express.entrypoints=http - traefik.http.routers.mongo-express.rule=Host(`mongo.rezije.app`) + mailgun-webhook: + image: registry.budakova.org/mailgun-webhook-service:${MAILGUN_WEBHOOK_VERSION:-latest} + networks: + - traefik-network + environment: + PORT: 3000 + PROMETHEUS_APP_LABEL: mailgun-webhook-service + PROMETHEUS_HISTOGRAM_BUCKETS: 0.1,0.5,1,5,10 + DEBUG: server:*,app:* + deploy: + restart_policy: + condition: any + delay: 5s + max_attempts: 0 + labels: + - traefik.enable=true + - traefik.docker.network=traefik-network + - traefik.http.services.mailgun-webhook.loadbalancer.server.port=3000 + - traefik.http.routers.mailgun-webhook.entrypoints=http + - traefik.http.routers.mailgun-webhook.rule=Host(`webhook.rezije.app`) +