-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
28 lines (26 loc) · 961 Bytes
/
docker-compose.yml
File metadata and controls
28 lines (26 loc) · 961 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
version: '3.8'
services:
smtp:
build:
context: .
dockerfile: Dockerfile
restart: unless-stopped
ports:
- "25:25"
- "587:587"
- "465:465"
- "2465:2465"
- "2587:2587"
environment:
- NODE_ENV=${NODE_ENV:-production}
- SMTP_AUTH_USERNAME=${SMTP_AUTH_USERNAME:-bytesend}
- BYTESEND_BASE_URL=${BYTESEND_BASE_URL:-https://bytesend.cloud}
# TLS_MODE: 'none' (default) — plain SMTP, suitable behind a reverse proxy
# 'manual' — server handles TLS; set cert/key paths below
- SMTP_TLS_MODE=${SMTP_TLS_MODE:-none}
# Uncomment and set these when using SMTP_TLS_MODE=manual:
# - SMTP_TLS_CERT_PATH=${SMTP_TLS_CERT_PATH:-/certs/fullchain.pem}
# - SMTP_TLS_KEY_PATH=${SMTP_TLS_KEY_PATH:-/certs/privkey.pem}
# When using manual TLS, mount your cert directory:
# volumes:
# - /etc/letsencrypt/live/smtp.example.com:/certs:ro