30 lines
976 B
YAML
30 lines
976 B
YAML
name: usesend-smtp-server
|
|
|
|
services:
|
|
smtp-server:
|
|
container_name: usesend-smtp-server
|
|
image: usesend/smtp-proxy:latest
|
|
# Pass necessary environment variables
|
|
environment:
|
|
SMTP_AUTH_USERNAME: "usesend" # can be anything, just use the same while sending emails
|
|
USESEND_BASE_URL: "https://app.usesend.com" # your self hosted useSend instance url
|
|
|
|
# Uncomment this if you have SSL certificates. port 465 and 2465 will be using SSL
|
|
# USESEND_API_KEY_PATH: "/certs/server.key"
|
|
# USESEND_API_CERT_PATH: "/certs/server.crt"
|
|
# If you have SSL certificates, mount them here (read-only recommended)
|
|
|
|
# volumes:
|
|
# - ./certs/server.key:/certs/server.key:ro
|
|
# - ./certs/server.crt:/certs/server.crt:ro
|
|
|
|
# Expose the SMTP ports
|
|
ports:
|
|
- "25:25"
|
|
- "587:587"
|
|
- "2587:2587"
|
|
- "465:465"
|
|
- "2465:2465"
|
|
# Restart always or on-failure, depending on preference
|
|
restart: unless-stopped
|