1 ## this is the all-in-one, standalone Discourse Docker container template
3 ## After making changes to this file, you MUST rebuild
4 ## /var/discourse/launcher rebuild app
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
11 - "templates/postgres.template.yml"
12 - "templates/redis.template.yml"
13 - "templates/web.template.yml"
14 - "templates/web.ratelimited.template.yml"
15 ## Uncomment these two lines if you wish to add Lets Encrypt (https)
16 #- "templates/web.ssl.template.yml"
17 #- "templates/web.letsencrypt.ssl.template.yml"
19 ## which TCP/IP ports should this container expose?
20 ## If you want Discourse to share a port with another webserver like Apache or nginx,
21 ## see https://meta.discourse.org/t/17247 for details
27 db_default_text_search_config: "pg_catalog.english"
29 ## Set db_shared_buffers to a max of 25% of the total memory.
30 ## will be set automatically by bootstrap based on detected RAM, or you can override
31 #db_shared_buffers: "256MB"
33 ## can improve sorting performance, but adds memory usage per-connection
36 ## Which Git revision should this container use? (default: tests-passed)
37 #version: tests-passed
41 # DISCOURSE_DEFAULT_LOCALE: en
43 ## How many concurrent web requests are supported? Depends on memory and CPU cores.
44 ## will be set automatically by bootstrap based on detected CPUs, or you can override
47 ## TODO: The domain name this Discourse instance will respond to
48 DISCOURSE_HOSTNAME: 'discourse.example.com'
50 ## Uncomment if you want the container to be started with the same
51 ## hostname (-h option) as specified above (default "$hostname-$config")
52 #DOCKER_USE_HOSTNAME: true
54 ## TODO: List of comma delimited emails that will be made admin and developer
55 ## on initial signup example 'user1@example.com,user2@example.com'
56 DISCOURSE_DEVELOPER_EMAILS: 'me@example.com'
58 ## TODO: The SMTP mail server used to validate new accounts and send notifications
59 DISCOURSE_SMTP_ADDRESS: smtp.example.com # required
60 #DISCOURSE_SMTP_PORT: 587 # (optional, default 587)
61 #DISCOURSE_SMTP_USER_NAME: user@example.com # required
62 #DISCOURSE_SMTP_PASSWORD: pa$$word # required, WARNING the char '#' in pw can cause problems!
63 #DISCOURSE_SMTP_ENABLE_START_TLS: true # (optional, default true)
65 ## If you added the Lets Encrypt template, uncomment below to get a free SSL certificate
66 #LETSENCRYPT_ACCOUNT_EMAIL: me@example.com
68 ## The CDN address for this Discourse instance (configured to pull)
69 ## see https://meta.discourse.org/t/14857 for details
70 #DISCOURSE_CDN_URL: //discourse-cdn.example.com
72 ## The Docker container is stateless; all data is stored in /shared
75 host: /var/discourse/shared/standalone
78 host: /var/discourse/shared/standalone/log/var-log
82 ## see https://meta.discourse.org/t/19157 for details
88 - git clone https://github.com/discourse/docker_manager.git
90 ## Any custom commands to run after building
92 - exec: echo "Beginning of custom commands"
93 ## If you want to set the 'From' email address for your first registration, uncomment and change:
94 ## After getting the first signup email, re-comment the line. It only needs to run once.
95 #- exec: rails r "SiteSetting.notification_email='info@unconfigured.discourse.org'"
96 - exec: echo "End of custom commands"