Bump base image (#538)
[discourse_docker.git] / samples / mail-receiver.yml
CommitLineData
5a92b90f
MP
1## this is the incoming mail receiver container template
2##
3## After making changes to this file, you MUST rebuild
4## /var/discourse/launcher rebuild mail-receiver
5##
6## BE *VERY* CAREFUL WHEN EDITING!
7## YAML FILES ARE SUPER SUPER SENSITIVE TO MISTAKES IN WHITESPACE OR ALIGNMENT!
8## visit http://www.yamllint.com/ to validate this file as needed
9
d775b462 10base_image: discourse/mail-receiver:release
93e6a609 11update_pups: false
5a92b90f
MP
12
13expose:
14 - "25:25" # SMTP
15
16env:
a4b6986b 17 LC_ALL: en_US.UTF-8
5a92b90f 18 LANG: en_US.UTF-8
a4b6986b 19 LANGUAGE: en_US.UTF-8
5a92b90f 20
a502da0e
MP
21 ## Where e-mail to your forum should be sent. In general, it's perfectly fine
22 ## to use the same domain as the forum itself here.
23 MAIL_DOMAIN: discourse.example.com
212a9ea8
JP
24# uncomment these (and the volume below!) to support TLS
25# POSTCONF_smtpd_tls_key_file: /letsencrypt/discourse.example.com/prop.ltcmp.net.key
26# POSTCONF_smtpd_tls_cert_file: /letsencrypt/discourse.example.com/fullchain.cer
27# POSTCONF_smtpd_tls_security_level: may
28
a502da0e 29
5a92b90f
MP
30 ## The URL of the mail processing endpoint of your Discourse forum.
31 ## This is simply your forum's base URL, with `/admin/email/handle_mail`
32 ## appended. Be careful if you're running a subfolder setup -- in that case,
33 ## the URL needs to have the subfolder included!
468f1f9c 34 DISCOURSE_MAIL_ENDPOINT: 'https://discourse.example.com/admin/email/handle_mail'
5a92b90f
MP
35
36 ## The master API key of your Discourse forum. You can get this from
37 ## the "API" tab of your admin panel.
18d87dd3 38 DISCOURSE_API_KEY: abcdefghijklmnop
5a92b90f
MP
39
40 ## The username to use for processing incoming e-mail. Unless you have
41 ## renamed the `system` user, you should leave this as-is.
42 DISCOURSE_API_USERNAME: system
43
44volumes:
45 - volume:
46 host: /var/discourse/shared/mail-receiver/postfix-spool
47 guest: /var/spool/postfix
212a9ea8
JP
48# uncomment to support TLS
49# - volume:
50# host: /var/discourse/shared/standalone/letsencrypt
51# guest: /letsencrypt
52
53