Advertisement
Guest User

Untitled

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