techwithanirudh

Untitled

Sep 3rd, 2023
527
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 6.27 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. ## Uncomment the next line to enable the IPv6 listener
  15. #- "templates/web.ipv6.template.yml"
  16. - "templates/web.ratelimited.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. - "80:80" # http
  26. - "443:443" # https
  27.  
  28. params:
  29.   db_default_text_search_config: "pg_catalog.english"
  30.  
  31.   ## Set db_shared_buffers to a max of 25% of the total memory.
  32.   ## will be set automatically by bootstrap based on detected RAM, or you can override
  33.   db_shared_buffers: "1024MB"
  34.  
  35.   ## can improve sorting performance, but adds memory usage per-connection
  36.   #db_work_mem: "40MB"
  37.  
  38.   ## Which Git revision should this container use? (default: tests-passed)
  39.   #version: tests-passed
  40.  
  41. env:
  42.   LC_ALL: en_US.UTF-8
  43.   LANG: en_US.UTF-8
  44.   LANGUAGE: en_US.UTF-8
  45.   # DISCOURSE_DEFAULT_LOCALE: en
  46.  
  47.   ## How many concurrent web requests are supported? Depends on memory and CPU cores.
  48.   ## will be set automatically by bootstrap based on detected CPUs, or you can override
  49.   UNICORN_WORKERS: 4
  50.  
  51.   ## TODO: The domain name this Discourse instance will respond to
  52.   ## Required. Discourse will not work with a bare IP number.
  53.   DISCOURSE_HOSTNAME: forum.techwithanirudh.com
  54.  
  55.   ## Uncomment if you want the container to be started with the same
  56.   ## hostname (-h option) as specified above (default "$hostname-$config")
  57.   #DOCKER_USE_HOSTNAME: true
  58.  
  59.   ## TODO: List of comma delimited emails that will be made admin and developer
  60.   ## on initial signup example '[email protected],[email protected]'
  61.   DISCOURSE_DEVELOPER_EMAILS: '[email protected]'
  62.  
  63.   ## TODO: The SMTP mail server used to validate new accounts and send notifications
  64.   # SMTP ADDRESS, username, and password are required
  65.   # WARNING the char '#' in SMTP password can cause problems!
  66.   DISCOURSE_SMTP_ADDRESS: smtp.sendgrid.net
  67.   DISCOURSE_SMTP_PORT: 587
  68.   DISCOURSE_SMTP_USER_NAME: apikey
  69.   DISCOURSE_SMTP_PASSWORD: "redactedforsecurity"
  70.   #DISCOURSE_SMTP_ENABLE_START_TLS: true           # (optional, default true)
  71.   DISCOURSE_SMTP_DOMAIN: forum.techwithanirudh.com
  72.   DISCOURSE_NOTIFICATION_EMAIL: [email protected]
  73.  
  74.   ## If you added the Lets Encrypt template, uncomment below to get a free SSL certificate
  75.   LETSENCRYPT_ACCOUNT_EMAIL: [email protected]
  76.  
  77.   ## The http or https CDN address for this Discourse instance (configured to pull)
  78.   ## see https://meta.discourse.org/t/14857 for details
  79.   #DISCOURSE_CDN_URL: https://discourse-cdn.example.com
  80.  
  81.   ## The maxmind geolocation IP address key for IP address lookup
  82.   ## see https://meta.discourse.org/t/-/137387/23 for details
  83.   #DISCOURSE_MAXMIND_LICENSE_KEY: 1234567890123456
  84.  
  85. ## The Docker container is stateless; all data is stored in /shared
  86. volumes:
  87. - volume:
  88.     host: /var/discourse/shared/standalone
  89.     guest: /shared
  90. - volume:
  91.     host: /var/discourse/shared/standalone/log/var-log
  92.     guest: /var/log
  93.  
  94. ## Plugins go here
  95. ## see https://meta.discourse.org/t/19157 for details
  96. hooks:
  97.   after_code:
  98.   - exec:
  99.       cd: $home/plugins
  100.       cmd:
  101.      - git clone https://github.com/discourse/docker_manager.git
  102.       - git clone https://github.com/discourse/discourse-shared-edits.git
  103.       - git clone https://github.com/discourse/discourse-whos-online.git
  104.       - git clone https://github.com/discourse/discourse-automation.git
  105.       - git clone https://github.com/discourse/discourse-calendar.git
  106.       - git clone https://github.com/discourse/discourse-templates.git
  107.       - git clone https://github.com/discourse/discourse-assign.git
  108.       - git clone https://github.com/discourse/discourse-user-notes.git
  109.       - git clone https://github.com/discourse/discourse-data-explorer.git
  110.       - git clone https://github.com/discourse/discourse-voting.git
  111.       - git clone https://github.com/discourse/discourse-ai.git
  112.       - git clone https://github.com/discourse/discourse-login-with-amazon.git
  113.       - git clone https://github.com/discourse/discourse-linkedin-auth.git
  114.       - git clone https://github.com/discourse/discourse-microsoft-auth.git
  115.       - git clone https://github.com/discourse/discourse-docs.git
  116.       - git clone https://github.com/discourse/discourse-footnote.git
  117.       - git clone https://github.com/discourse/discourse-github.git
  118.       - git clone https://github.com/discourse/discourse-solved.git
  119.       - git clone https://github.com/discourse/discourse-cakeday.git
  120.       - git clone https://github.com/discourse/discourse-reactions.git
  121.       - git clone https://github.com/discourse/discourse-spoiler-alert.git
  122.       - git clone https://github.com/discourse/discourse-gamification.git
  123.       - git clone https://github.com/discourse/discourse-affiliate.git
  124.       - git clone https://github.com/discourse/discourse-apple-auth.git
  125.       - git clone https://github.com/discourse/discourse-akismet.git
  126.       - git clone https://github.com/discourse/discourse-rss-polling.git
  127.       - git clone https://github.com/discourse/discourse-subscriptions.git
  128.       - git clone https://github.com/discourse/discourse-yearly-review.git
  129.       - git clone https://github.com/discourse/discourse-math.git
  130.       - git clone https://github.com/discourse/discourse-patreon.git
  131.  
  132. ## Any custom commands to run after building
  133. run:
  134. - exec: echo "Beginning of custom commands"
  135. ## If you want to set the 'From' email address for your first registration, uncomment and change:
  136. ## After getting the first signup email, re-comment the line. It only needs to run once.
  137. #- exec: rails r "SiteSetting.notification_email='[email protected]'"
  138. - exec: echo "End of custom commands"
  139.  
Advertisement
Add Comment
Please, Sign In to add comment