HUB
Sign inSign up

lblod/complaint-form-warning-service

By lblod

•Updated 2 days ago

Image
0

1.8K

lblod/complaint-form-warning-service repository overview

⁠complaint-form-warning-service

Service that generates warning emails when no complaints are sent during the business day.

Two cron jobs can be configured with cron jobs. Each one checks if complaint emails have been sent from the beginning of the business day (8h) to the time at which the cron job runs. If no emails were sent, the service generates a warning email.

⁠Installation

To add the service to your mu.semte.ch stack, add the following snippet to docker-compose.yml:

services:
  complaint-form-warning:
    image: lblod/complaint-form-warning-service:x.x.x
    environment:
      EMAIL_FROM: "[email protected]"
      EMAIL_TO: "[email protected]"
⁠Environment variables

Provided environment variables⁠ by the service. These can be added in within the docker declaration.

NameDescriptionDefault
EMAIL_FROMEmail address from which emails are sent
EMAIL_TOEmail address to which emails are sent
FIRST_CHECK_CRONThe first cron job rule (CET)0 0 14 * * 1-5
SECOND_CHECK_CRONThe second cron job rule (CET)0 0 16 * * 1-5

⁠Development

For a more detailed look in how to develop a microservices based on the mu-javascript-template⁠, we would recommend reading "Developing with the template⁠"

⁠Developing in the mu.semte.ch stack

Paste the following snip-it in your docker-compose.override.yml:

complaint-form-warning:
  image: semtech/mu-javascript-template:1.4.0
  environment:
    NODE_ENV: "development"
  volumes:
    - /absolute/path/to/your/sources/:/app/

Tag summary

Content type

Image

Digest

sha256:05cad8cd3…

Size

469 MB

Last updated

2 days ago

docker pull lblod/complaint-form-warning-service