Discourse app.yml Translation

## This is a standalone Discourse Docker container template
##
## After making changes to this file, you must rebuild
## /var/discourse/launcher rebuild app
##
## Be very careful when editing!
## YAML files are very sensitive to whitespace and alignment errors!
## You can visit http://www.yamllint.com/ to check if this file needs corrections.


templates:
  - "templates/postgres.template.yml"
  - "templates/redis.template.yml"
  - "templates/web.template.yml"
  ## Uncomment the line below to enable the IPv6 listener
  #- "templates/web.ipv6.template.yml"
  - "templates/web.ratelimited.template.yml"
  ## ## Uncomment the two lines below if you want to enable Let's Encrypt (HTTPS)
  - "templates/web.ssl.template.yml"
  - "templates/web.letsencrypt.ssl.template.yml"

## Which TCP/IP ports should this container expose?
## If you want Discourse to share a port with another web server (such as Apache or Nginx),
## see https://meta.discourse.org/t/17247 for more details.
expose:
  - "80:80"   # http
  - "443:443" # https

params:
  db_default_text_search_config: "pg_catalog.english"

  ## Set db_shared_buffers to at most 25% of your total system memory.
  ## It will be set automatically based on detected RAM, or you can override it manually here.
  db_shared_buffers: "2048"

  ## This can improve sorting performance, but increases memory usage per connection.
  db_work_mem: "50MB"

  ## Which Git version should this container use? (default: tests-passed)
  #version: tests-passed

  ## Maximum upload size (default: 10m)
  upload_size: 50m

env:
  LC_ALL: en_US.UTF-8
  LANG: en_US.UTF-8
  LANGUAGE: en_US.UTF-8
  # DISCOURSE_DEFAULT_LOCALE: en

  ## How many concurrent web requests are supported? Depends on available memory and CPU cores.
  ## It will be set automatically based on detected CPU, or you can override it manually here.
  UNICORN_WORKERS: 4

  ## TODO: The domain name that this Discourse instance will respond to
  ## Required. Discourse cannot operate with a bare IP address.
  DISCOURSE_HOSTNAME: Your IP address

  ## Uncomment if you want the container to start in the same way
  ## Uncomment if you want the container to start using the same hostname specified above (defaults to "$hostname-$config")
  #DOCKER_USE_HOSTNAME: true

  ## TODO: Comma-separated list of emails that will become admins and developers during initial registration
  ## Example: 'user1@example.com,user2@example.com'
  DISCOURSE_DEVELOPER_EMAILS: 'Your email address'

  ## TODO: SMTP mail server used to verify new accounts and send notifications
  # SMTP address, username, and password are required
  # Warning: the '#' character in SMTP passwords may cause issues!
  DISCOURSE_SMTP_ADDRESS: smtp.gmail.com
  DISCOURSE_SMTP_PORT: 587
  DISCOURSE_SMTP_USER_NAME: Your email address
  DISCOURSE_SMTP_PASSWORD: "Your email key"
  #DISCOURSE_SMTP_ENABLE_START_TLS: true           # (optional, default true)
  DISCOURSE_SMTP_DOMAIN: gmail.com
  DISCOURSE_NOTIFICATION_EMAIL: Your email address

  ## If you added the Let's Encrypt template, uncomment below to get a free SSL certificate
  LETSENCRYPT_ACCOUNT_EMAIL: Your email address

  ## HTTP or HTTPS CDN address for this Discourse instance (configured for pull)
  ## See https://meta.discourse.org/t/14857 for more details
  #DISCOURSE_CDN_URL: https://discourse-cdn.example.com
  
  ## MaxMind GeoIP license key for IP address lookups
  ## See https://meta.discourse.org/t/-/137387/23 for more details
  #DISCOURSE_MAXMIND_LICENSE_KEY: 1234567890123456

## Docker containers are stateless; all data is stored in the /shared directory
volumes:
  - volume:
      host: /var/discourse/shared/standalone
      guest: /shared
  - volume:
      host: /var/discourse/shared/standalone/log/var-log
      guest: /var/log

## Plugins go here
## see https://meta.discourse.org/t/19157 for details
hooks:
  after_code:
    - exec:
        cd: $home/plugins
        cmd:
          - git clone https://github.com/discourse/docker_manager.git           # (Manager)


    - exec:
        cd: $home/plugins/discourse-animated-avatars
        raise_on_fail: false
        cmd:
          - $home/plugins/discourse-animated-avatars/scripts/install.sh

## Any custom commands to run after building
run:
  - exec: echo "Beginning of custom commands"
  ## If you want to set the 'From' email address for your first registration, uncomment and change:
  ## After getting the first signup email, re-comment the line. It only needs to run once.
  #- exec: rails r "SiteSetting.notification_email='info@unconfigured.discourse.org'"
  - exec: echo "End of custom commands"
2 Likes