## SQLInsight Pro community forum: Discourse, installed with the official discourse_docker launcher. ## See docs/community.md. Copy to /var/discourse/containers/app.yml, fill in the values marked CHANGE, and run ## ./launcher rebuild app ## (deploy/forum/install.sh does this for you.) templates: - "templates/postgres.template.yml" - "templates/redis.template.yml" - "templates/web.template.yml" - "templates/web.ratelimited.template.yml" ## TLS with Let's Encrypt. Remove both lines if a reverse proxy in front already terminates TLS. - "templates/web.ssl.template.yml" - "templates/web.letsencrypt.ssl.template.yml" expose: - "80:80" - "443:443" params: ## Danish stemming for search. db_default_text_search_config: "pg_catalog.danish" ## About 25 % of the server's memory. db_shared_buffers: "512MB" env: LC_ALL: en_US.UTF-8 LANG: en_US.UTF-8 LANGUAGE: en_US.UTF-8 DISCOURSE_DEFAULT_LOCALE: da ## About 2 per CPU core. UNICORN_WORKERS: 4 ## CHANGE: the forum's address (a DNS record must point to this server). DISCOURSE_HOSTNAME: forum.sqlinsight.seosoft.dk ## CHANGE: who becomes administrator when signing up with these addresses. DISCOURSE_DEVELOPER_EMAILS: "admin@example.com" ## CHANGE: mail server. Discourse cannot work without it (sign-up, notifications, password reset). DISCOURSE_SMTP_ADDRESS: smtp.example.com DISCOURSE_SMTP_PORT: 587 DISCOURSE_SMTP_USER_NAME: forum@example.com DISCOURSE_SMTP_PASSWORD: "CHANGE" DISCOURSE_SMTP_ENABLE_START_TLS: true DISCOURSE_NOTIFICATION_EMAIL: forum@example.com ## CHANGE: address Let's Encrypt writes to about expiring certificates. LETSENCRYPT_ACCOUNT_EMAIL: admin@example.com volumes: - volume: host: /var/discourse/shared/standalone guest: /shared - volume: host: /var/discourse/shared/standalone/log/var-log guest: /var/log hooks: after_code: - exec: cd: $home/plugins cmd: ## Upgrades from the admin page. - git clone https://github.com/discourse/docker_manager.git run: - exec: echo "Beginning of custom commands" - exec: echo "End of custom commands"