Sign inSign up

accent/grpc-service-email

By accent

•Updated 3 days ago

Image
0

8.1K

accent/grpc-service-email repository overview

⁠Email Service

Public repo can be found here⁠.

An email service that implements:

  • SendEmail
    • Plain & HTML
    • Attachments

A connection is attempted during the init process of the server to test valid credentials.

⁠Arguments

Command line arguments the service accepts:

ArgumentDescription
-h, --helpShow help message and exit
-reflection, --reflectionUsed to allow gRPC Web UI tools to connect
-port, --portPort to bind to

⁠Environment

A list of the environment variables:

VariableDescription
SMTP_HOSTSMTP server host (e.g. smtp.sendgrid.net)
SMTP_PORTSMTP server port (e.g. 587)
SMTP_USERNAMESMTP server username (e.g. apikey)
SMTP_PASSWORDSMTP server password (e.g. my-sendgrid-key)
SMTP_STARTTLSSMTP server start TLS (e.g. t,1,true or f,0,false)

⁠Usage

pull:

docker pull accent/grpc-service-email:latest

compose:

version: '3.9'

services:
  maildev:
    image: maildev/maildev
    ports:
      - "1080:1080"
  email:
    image: accent/grpc-service-email:latest
    environment:
      SMTP_HOST: maildev
      SMTP_PORT: 1025

health check Is only available from v0.0.5:

version: '3.9'

services:
  ...
  email:
    image: accent/grpc-service-email:latest
    environment:
      SMTP_HOST: maildev
      SMTP_PORT: 1025
  app:
    depends_on:
      email:
        condition: service_healthy

if you specify a different port other than 50051 change the health check:

version: '3.9'

services:
  ...
  email:
    image: accent/grpc-service-email:latest
    environment:
      SMTP_HOST: maildev
      SMTP_PORT: 1025
    healthcheck:
      test: [ "CMD", "/usr/local/bin/grpc_health_probe", "-addr=:50052" ]
      interval: 2s
      timeout: 2s
      retries: 10
    command:
    - -port=50052

Tag summary

Content type

Image

Digest

sha256:f71039597…

Size

86.9 MB

Last updated

3 days ago

docker pull accent/grpc-service-email