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 - ./domains.txt:/etc/email-worker/domains.txt:ro
- worker-logs:/var/log/email-worker - worker-logs:/var/log/email-worker
ports: ports:
- "8000:8000" # Prometheus metrics - "9000:8000" # Prometheus metrics (Host:Container)
- "8080:8080" # Health check - "9090:8080" # Health check (Host:Container)
# Connect to DMS on the host or Docker network # Connect to DMS on the host or Docker network
extra_hosts: extra_hosts:
- "host.docker.internal:host-gateway" - "host.docker.internal:host-gateway"

View File

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