Public repo can be found here.
An email service that implements:
A connection is attempted during the init process of the server to test valid credentials.
Command line arguments the service accepts:
| Argument | Description |
|---|---|
-h, --help | Show help message and exit |
-reflection, --reflection | Used to allow gRPC Web UI tools to connect |
-port, --port | Port to bind to |
A list of the environment variables:
| Variable | Description |
|---|---|
SMTP_HOST | SMTP server host (e.g. smtp.sendgrid.net) |
SMTP_PORT | SMTP server port (e.g. 587) |
SMTP_USERNAME | SMTP server username (e.g. apikey) |
SMTP_PASSWORD | SMTP server password (e.g. my-sendgrid-key) |
SMTP_STARTTLS | SMTP server start TLS (e.g. t,1,true or f,0,false) |
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
Content type
Image
Digest
sha256:f71039597…
Size
86.9 MB
Last updated
3 days ago
docker pull accent/grpc-service-email