Guest User

app.yml

a guest
Apr 7th, 2021
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 4.17 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. ## 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"
  18.  
  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
  22. expose:
  23.  - "80:80"   # http
  24.   - "443:443" # https
  25.  
  26. params:
  27.   db_default_text_search_config: "pg_catalog.english"
  28.  
  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"
  32.  
  33.   ## can improve sorting performance, but adds memory usage per-connection
  34.   #db_work_mem: "40MB"
  35.  
  36.   ## Which Git revision should this container use? (default: tests-passed)
  37.   #version: tests-passed
  38.  
  39. env:
  40.   LC_ALL: en_US.UTF-8
  41.   LANG: en_US.UTF-8
  42.   LANGUAGE: en_US.UTF-8
  43.   # DISCOURSE_DEFAULT_LOCALE: en
  44.  
  45.   ## How many concurrent web requests are supported? Depends on memory and CPU cores.
  46.   ## will be set automatically by bootstrap based on detected CPUs, or you can override
  47.   UNICORN_WORKERS: 4
  48.  
  49.   ## TODO: The domain name this Discourse instance will respond to
  50.   ## Required. Discourse will not work with a bare IP number.
  51.   DISCOURSE_HOSTNAME: talk.wilycraft.xyz
  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 '[email protected],[email protected]'
  59.   DISCOURSE_DEVELOPER_EMAILS: '[email protected]'
  60.  
  61.   ## TODO: The SMTP mail server used to validate new accounts and send notifications
  62.   # SMTP ADDRESS, username, and password are required
  63.   # WARNING the char '#' in SMTP password can cause problems!
  64.   DISCOURSE_SMTP_AUTHENTICATION: login
  65.   DISCOURSE_SMTP_ADDRESS: smtp.wilycraft.xyz
  66.   DISCOURSE_SMTP_PORT: 587
  67.   DISCOURSE_SMTP_USER_NAME: [email protected]
  68.   DISCOURSE_SMTP_PASSWORD: "*PASS*"
  69.   #DISCOURSE_SMTP_ENABLE_START_TLS: true           # (optional, default true)
  70.   DISCOURSE_SMTP_DOMAIN: wilycraft.xyz
  71.   DISCOURSE_NOTIFICATION_EMAIL: [email protected]
  72.  
  73.   ## If you added the Lets Encrypt template, uncomment below to get a free SSL certificate
  74.   LETSENCRYPT_ACCOUNT_EMAIL: [email protected]
  75.  
  76.   ## The http or https CDN address for this Discourse instance (configured to pull)
  77.   ## see https://meta.discourse.org/t/14857 for details
  78.   #DISCOURSE_CDN_URL: https://discourse-cdn.example.com
  79.  
  80.   ## The maxmind geolocation IP address key for IP address lookup
  81.   ## see https://meta.discourse.org/t/-/137387/23 for details
  82.   #DISCOURSE_MAXMIND_LICENSE_KEY: 1234567890123456
  83.  
  84. ## The Docker container is stateless; all data is stored in /shared
  85. volumes:
  86.   - volume:
  87.       host: /var/discourse/shared/standalone
  88.       guest: /shared
  89.   - volume:
  90.       host: /var/discourse/shared/standalone/log/var-log
  91.       guest: /var/log
  92.  
  93. ## Plugins go here
  94. ## see https://meta.discourse.org/t/19157 for details
  95. hooks:
  96.   after_code:
  97.     - exec:
  98.         cd: $home/plugins
  99.         cmd:
  100.          - git clone https://github.com/discourse/docker_manager.git
  101.  
  102. ## Any custom commands to run after building
  103. run:
  104.   - exec: echo "Beginning of custom commands"
  105.   ## If you want to set the 'From' email address for your first registration, uncomment and change:
  106.   ## After getting the first signup email, re-comment the line. It only needs to run once.
  107.   #- exec: rails r "SiteSetting.notification_email='[email protected]'"
  108.   - exec: echo "End of custom commands"
  109.  
Advertisement
Add Comment
Please, Sign In to add comment