This commit is contained in:
Andreas Knuth 2026-03-07 15:47:14 -06:00
parent 3ab46f163a
commit 12af8577f3
2 changed files with 11 additions and 8 deletions

View File

@ -10,8 +10,8 @@ services:
- ./domains.txt:/etc/email-worker/domains.txt:ro
- worker-logs:/var/log/email-worker
ports:
- "8000:8000" # Prometheus metrics
- "8080:8080" # Health check
- "9000:8000" # Prometheus metrics (Host:Container)
- "9090:8080" # Health check (Host:Container)
# Connect to DMS on the host or Docker network
extra_hosts:
- "host.docker.internal:host-gateway"

View File

@ -103,12 +103,15 @@ function ensureFileStream(): WriteStream | null {
// ---------------------------------------------------------------------------
const logger = pino({
level: 'info',
formatters: {
level(label) {
return { level: label };
},
},
timestamp: pino.stdTimeFunctions.isoTime,
transport: {
target: 'pino-pretty',
options: {
colorize: true,
translateTime: 'SYS:yyyy-mm-dd HH:MM:ss',
ignore: 'pid,hostname',
singleLine: true
}
}
});
// ---------------------------------------------------------------------------