Advertisement
Guest User

Untitled

a guest
Feb 25th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.73 KB | None | 0 0
  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. ## Uncomment these two lines if you wish to add Lets Encrypt (https)
  17. # - "templates/web.ssl.template.yml"
  18. # - "templates/web.letsencrypt.ssl.template.yml"
  19.  
  20. ## which TCP/IP ports should this container expose?
  21. ## If you want Discourse to share a port with another webserver like Apache or nginx,
  22. ## see https://meta.discourse.org/t/17247 for details
  23. expose:
  24. # - "80:81" # http
  25. # - "443:443" # https
  26.  
  27. params:
  28. db_default_text_search_config: "pg_catalog.english"
  29.  
  30. ## Set db_shared_buffers to a max of 25% of the total memory.
  31. ## will be set automatically by bootstrap based on detected RAM, or you can override
  32. db_shared_buffers: "4096MB"
  33.  
  34. ## can improve sorting performance, but adds memory usage per-connection
  35. #db_work_mem: "40MB"
  36.  
  37. ## Which Git revision should this container use? (default: tests-passed)
  38. #version: tests-passed
  39.  
  40. env:
  41. LANG: en_US.UTF-8
  42. # DISCOURSE_DEFAULT_LOCALE: en
  43.  
  44. ## How many concurrent web requests are supported? Depends on memory and CPU cores.
  45. ## will be set automatically by bootstrap based on detected CPUs, or you can override
  46. UNICORN_WORKERS: 8
  47.  
  48. ## TODO: The domain name this Discourse instance will respond to
  49. DISCOURSE_HOSTNAME: forum.legiochristi.com
  50. DISCOURSE_RELATIVE_URL_ROOT: /
  51.  
  52. ## Uncomment if you want the container to be started with the same
  53. ## hostname (-h option) as specified above (default "$hostname-$config")
  54. DOCKER_USE_HOSTNAME: true
  55.  
  56. ## TODO: List of comma delimited emails that will be made admin and developer
  57. ## on initial signup example 'user1@example.com,user2@example.com'
  58. DISCOURSE_DEVELOPER_EMAILS:
  59.  
  60. ## TODO: The SMTP mail server used to validate new accounts and send notifications
  61. DISCOURSE_SMTP_ADDRESS:
  62. DISCOURSE_SMTP_PORT:
  63. #DISCOURSE_SMTP_USER_NAME:
  64. #DISCOURSE_SMTP_PASSWORD:
  65. DISCOURSE_SMTP_ENABLE_START_TLS: false # (optional, default true)
  66. #DISCOURSE_SMTP_OPENSSL_VERIFY_MODE: none
  67. DISCOURSE_SMTP_AUTHENTICATION: "plain"
  68.  
  69. ## If you added the Lets Encrypt template, uncomment below to get a free SSL certificate
  70. #LETSENCRYPT_ACCOUNT_EMAIL: admin@legiochristi.com
  71.  
  72. ## The CDN address for this Discourse instance (configured to pull)
  73. ## see https://meta.discourse.org/t/14857 for details
  74. #DISCOURSE_CDN_URL: //discourse-cdn.example.com
  75.  
  76. ## The Docker container is stateless; all data is stored in /shared
  77. volumes:
  78. - volume:
  79. host: /var/discourse/shared/standalone
  80. guest: /shared
  81. - volume:
  82. host: /var/discourse/shared/standalone/log/var-log
  83. guest: /var/log
  84.  
  85. ## Plugins go here
  86. ## see https://meta.discourse.org/t/19157 for details
  87. hooks:
  88. after_code:
  89. - exec:
  90. cd: $home/plugins
  91. cmd:
  92. - git clone https://github.com/discourse/docker_manager.git
  93.  
  94. ## Any custom commands to run after building
  95. run:
  96. - exec: echo "Beginning of custom commands"
  97. ## If you want to set the 'From' email address for your first registration, uncomment and change:
  98. ## After getting the first signup email, re-comment the line. It only needs to run once.
  99. #- exec: rails r "SiteSetting.notification_email='info@unconfigured.discourse.org'"
  100. - exec: echo "End of custom commands"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement