OLD | NEW |
(Empty) | |
| 1 ## this is the all-in-one, standalone Discourse Docker container template |
| 2 ## |
| 3 ## After making changes to this file, you MUST rebuild |
| 4 ## /var/discourse/launcher rebuild app |
| 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 |
| 10 templates: |
| 11 - "templates/postgres.template.yml" |
| 12 - "templates/redis.template.yml" |
| 13 - "templates/web.template.yml" |
| 14 - "templates/web.ratelimited.template.yml" |
| 15 - "templates/web.socketed.template.yml" |
| 16 |
| 17 ## which TCP/IP ports should this container expose? |
| 18 expose: |
| 19 |
| 20 params: |
| 21 db_default_text_search_config: "pg_catalog.english" |
| 22 |
| 23 ## Set db_shared_buffers to a max of 25% of the total memory. |
| 24 ## will be set automatically by bootstrap based on detected RAM, or you can ov
erride |
| 25 db_shared_buffers: "256MB" |
| 26 |
| 27 ## can improve sorting performance, but adds memory usage per-connection |
| 28 #db_work_mem: "40MB" |
| 29 |
| 30 ## Which Git revision should this container use? (default: tests-passed) |
| 31 version: v1.5.3 |
| 32 |
| 33 env: |
| 34 LANG: en_US.UTF-8 |
| 35 |
| 36 ## How many concurrent web requests are supported? Depends on memory and CPU c
ores. |
| 37 ## will be set automatically by bootstrap based on detected CPUs, or you can o
verride |
| 38 UNICORN_WORKERS: 2 |
| 39 |
| 40 ## The domain name this Discourse instance will respond to |
| 41 DISCOURSE_HOSTNAME: '<%= @domain %>' |
| 42 |
| 43 ## Uncomment if you want the container to be started with the same |
| 44 ## hostname (-h option) as specified above (default "$hostname-$config") |
| 45 #DOCKER_USE_HOSTNAME: true |
| 46 |
| 47 ## TODO: List of comma delimited emails that will be made admin and developer |
| 48 ## on initial signup example 'user1@example.com,user2@example.com' |
| 49 DISCOURSE_DEVELOPER_EMAILS: '<% @admins.each do |admin| %><%= admin %>,<% end
%>' |
| 50 |
| 51 ## TODO: The SMTP mail server used to validate new accounts and send notificat
ions |
| 52 DISCOURSE_SMTP_ADDRESS: localhost # required |
| 53 DISCOURSE_SMTP_PORT: 25 # (optional, default 587) |
| 54 #DISCOURSE_SMTP_USER_NAME: user@example.com # required |
| 55 #DISCOURSE_SMTP_PASSWORD: pa$$word # required, WARNING the char
'#' in pw can cause problems! |
| 56 DISCOURSE_SMTP_ENABLE_START_TLS: false # (optional, default true) |
| 57 |
| 58 ## If you added the Lets Encrypt template, uncomment below to get a free SSL c
ertificate |
| 59 #LETSENCRYPT_ACCOUNT_EMAIL: me@example.com |
| 60 |
| 61 ## The CDN address for this Discourse instance (configured to pull) |
| 62 ## see https://meta.discourse.org/t/14857 for details |
| 63 #DISCOURSE_CDN_URL: //discourse-cdn.example.com |
| 64 |
| 65 ## The Docker container is stateless; all data is stored in /shared |
| 66 volumes: |
| 67 - volume: |
| 68 host: /var/discourse/shared/standalone |
| 69 guest: /shared |
| 70 - volume: |
| 71 host: /var/discourse/shared/standalone/log/var-log |
| 72 guest: /var/log |
| 73 |
| 74 ## Plugins go here |
| 75 ## see https://meta.discourse.org/t/19157 for details |
| 76 hooks: |
| 77 after_code: |
| 78 - exec: |
| 79 cd: $home/plugins |
| 80 cmd: |
| 81 #- git clone https://github.com/discourse/docker_manager.git |
| 82 |
| 83 ## Any custom commands to run after building |
| 84 run: |
| 85 - exec: echo "Beginning of custom commands" |
| 86 - exec: rails r "<% @site_settings.sort_by { |k,v| k }.each do |name, value| %
>SiteSetting.<%=name%>='<%=value%>';<% end %>" |
| 87 - exec: echo "End of custom commands" |
OLD | NEW |