تثبيت Discourse في الإنتاج باستخدام التعليمات الرسمية المدعومة

Install Discourse in production with the official, supported instructions

:bookmark: This is a guide to install Discourse in production using the official and supported instructions.

:person_raising_hand: Required user level: Administrator
:warning: Console access required

Summary

This document provides an overview and guidance for installing Discourse using the official, supported installation method. This method ensures stability and compatibility, whether you’re hosting on bare metal or in the cloud. Following the official instructions will maximize the chances of your installation running smoothly.

Why use the official installation guide?

Opting for the official installation method ensures that your Discourse installation aligns with supported configurations. Using an unsupported method increases the likelihood of encountering technical issues that may not receive assistance from the community or official channels.

The official approach utilizes a Docker-based installation process for ease of deployment and management. Docker containers help to standardize environments and simplify the process of installing and updating Discourse.

Official installation steps

Follow the official Discourse installation guide on GitHub. Here’s a snapshot of what the installation typically involves:

  1. Prepare your server:

    • Minimum requirements: A 64-bit Linux server with at least 1 GB of RAM and a dual-core processor (2 GB RAM is recommended for production).
    • Supported OS: Ubuntu 22.04 LTS or higher.
    • A root account or sudo user is required.
  2. Install prerequisites by setting up the necessary tools and dependencies needed for Docker and Discourse.

  3. Clone the official Discourse Docker repository on your server.

  4. Configure Discourse by editing the app.yml file. This includes settings like:

    • Email configuration (SMTP server details are mandatory for the installation to succeed).
    • Domain name.
  5. Run the installation commands provided in the guide to set up and start your Discourse instance.

  6. Access Discourse via your browser once the installation process completes, and finalize the setup via the web interface.

For a more detailed step-by-step process, use the official guide.

Best practices

  • Use the recommended operating system: Discourse is officially supported on Ubuntu 22.04 or higher. Other environments may work but are not officially documented or recommended.
  • Follow strict email configuration guidelines: Discourse relies heavily on email for account creation and other notifications. Ensure your email setup is correct to avoid issues.
  • Allocate sufficient memory: Under-resourced servers can cause installation or runtime problems. A minimum of 2 GB of RAM is preferred for seamless operation.
  • Stay updated: Always ensure your Discourse instance and its dependencies are up-to-date to access the latest features and security patches.

FAQs

Q1: Can I install Discourse on shared hosting?
A: Discourse requires a dedicated environment, such as a virtual private server (VPS) or a cloud instance, to work properly. Shared hosting typically does not meet these requirements.

Q2: What happens if I use an unsupported installation method?
A: You may experience compatibility issues and are less likely to receive help on Meta or from the broader community.

Q3: What if installation feels complex or intimidating?
A: You can explore hosted options provided by Discourse, with managed services starting with a 14-day free trial. Visit Discourse Pricing for details.

47 إعجابًا
How to install discourse in Hosting?
Deploy in heroku
Unable to connect to PostgreSQL despite configuration
Sidekiq not running. Sidekiq heartbeat test failed, restarting
Setup wont send me the email
Install Discourse Docker on Ubuntu 11
Discourse One-Click Self-Hosting: Quicker and Easier than Official Install
Discourse Forum not working with Digital Ocean
Why the icon address is localhost when I use an ip as hostname
Not getting activation email
How do you scale discourse horizontally?
How much RAM is required for Discourse?
UI randomly fails during a short period
How to install Discourse locally?
Bootstrap failing
SMTP works with test emails but not with new activations
How do I run Discourse on a folder on my site running PHP on LAMP on DigitalOcean
How much RAM is needed to host discourse along with other services?
Category Icon Image Issue
Letsencrypt issued on every build?
Discourse Swap Memory (1GB Warning)
Configure Discourse to use a separate PostgreSQL server
Please help me with Discourse installation i am a super newbie
Need help with installing discourse
Very frequent 500 errors after server reinstallation
Install Discourse on Bluehost Sub Domain
Domain checker
Synology docker installs
PostgreSQL 12 update
Assets:precompile is giving error
Questions about Discourse Forum and Digital Ocean? Hosting?
Some devices can't connect to server
PostgreSQL 12 update
Port issue - Please help
Port issue - Please help
Bootsnap::CompileCache::PermissionError
Migrate quickly to separate web and data containers
Site setting is different Every time on Ubuntu development installation
Let's encrypt SSL certificate expired: `urn:ietf:params:acme:error:rateLimited`
My discourse speed is very slow
Imgur images broken
Error connecting to Redis on localhost:6379 (Errno::EADDRNOTAVAIL)
Discourse not opening
Improved Bookmarks with Reminders
Fresh Install gives "Too many redirects" error
[ E 2023-02-09 19:25:44.6204 217094/T1o age/Cor/App/Implementation.cpp:221 ]: Could not spawn process for application /home/feedback/discour
Droplet install not working
Docker Maximum Supported Version Number?
Server not listening on IPv6
Few questions about the software (new comer)
Can't rebuild due to failed postgres 12 upgrade
Using Postfix with Discourse
How much RAM is required for Discourse?
Install going well but now blank white page
How to upgrade if `/var/discourse` has only `shared` and is not git repo
Backup restored and images are broken
Installing Discourse on DigitalOcean - got stuck
PWA (twa, offline)
Access Denied error message when trying to upload images
I don't understand what's the problem
Application not opening after admin:create
Aws deployed discourse is fetching assets from database url
Can I install discourse on this unmanaged vps? If yes how to?
How to access container app?
Automatic session management with OAuth SSO
WooCommerce Discourse Website newbie help
Assets precompile require redis
Discourse Voting missing table on postgresql
Assets precompile require redis
Discourse not working in domain
Uploading Files to Discourse
"Couldn't find IP Address for (my discourse forum link)"
Image upload size/resize question
Fresh Discourse installation ERR_CONNECTION_TIMED_OUT
Fresh Discourse installation ERR_CONNECTION_TIMED_OUT
Docker image update: Redis 6 and 25% smaller image size
Redis Unix Socket, Ubuntu Install
Redis Unix Socket, Ubuntu Install
How to install Discourse in WWW
What is the best way to install Discourse Forum on a Proxmox VM and expose it on the internet
Discourse on Debian 10
404 Error after installaton
Votes don't Merge when we combine posts
Enable shared edits gives internal server error message
Install Discourse on Ubuntu or Debian for Development
Install Discourse with plesk on a virtual server
Discourse Installed but nothing on domain
Discourse on Google Cloud port issue?
Nginx to server static files?
Nginx upstream timed out (110: Connection timed out)
System emails being sent by my personal account
Help 503 service unavailable error CyberPanel
DigtalOcean one-click install doesn't finish
Unable to login
Plugins don't show up
Migrating site from Personal vmware server to VPS
Custom discourse with limited features
Error upon installing - failed to register layer: Error processing tar file(exit status 1):
502 Bad Gateway and Discourse version NOT FOUND
How to setup discourse with cloudflare
How to install Discourse on Webhosting Server (without ssh control)?
Discourse update plugin without docker
How to get a password from database?
Upgrading from 2.9.0.beta8 broke the site, unrecoverable
Upgrading from 2.9.0.beta8 broke the site, unrecoverable
Multisite vs multiple containers
How to Install Discourse on CyberPanel?
Trying to install Discourse on portainer but it's not pulling the base container
Configure an S3 compatible object storage provider for uploads
Ember CLI is upsetting nginx
How do I run Discourse on Pterodactyl Panel?
Upgrade to Failure Discourse 2.8
Rake task "assets:precompile" is failing due to JS Compilation issue
How do I extract raw data from my discourse community site?
Rebuilding failed 'bundle exec rake db:migrate' failed with return #<Process::Status: pid 4979 exit 1>
My postgres isn't starting with my docker container
My postgres isn't starting with my docker container
Problems installing Spoiler plugin
Email Hostname Certificate Mismatch Causing sidekiq Queue Overload, Severe Site Instability
My postgres isn't starting with my docker container
Overriding Site Settings from env variable
Lightbox not working on Discourse
How to disable or reduce "update available" emails sent to admins
Discourse Running With Nginx Issue
Can't connect to database server
403 forbidden and other errors
Lightbox not working on Discourse
Failure to pay attention to SKIP POST DEPLOYMENT MIGRATIONS causes problems
Update problem : Broken Forum
Email notifications fail if duplicate headers exist
Email notifications fail if duplicate headers exist
Changing SMTP password
Thinking of trying self-hosted and have some questions
Pre compilation error version 3.0.4
Problem with a new Discourse installation
Failed Upgrade from 2.3.0 to 2.8.1
Trouble restoring backup--SiteSetting::Upload.s3_base_url is failing--because enable_s3_uploads was set in database
Failed Upgrade from 2.3.0 to 2.8.1
Trouble restoring backup--SiteSetting::Upload.s3_base_url is failing--because enable_s3_uploads was set in database
Recovering from failed/partially applied upgrade
Upgrades via UI disabled - and not being re-enabled after SSH upgrade
After putting cloudflare on my discourse forum, people's IP disappeared!
Site's down - app won't start, port 443 conflict?
Discourse installation successful, but still nothing on the domain and IP of the server
How do I Change Email Adress in admin/settings/emails?
Different Device, Same IP with Nginx
Update problem : Broken Forum
Problem with post revisions after updating to 2.8.6 stable or 2.9.0.beta7
Introducing Discourse Chat (BETA)
Introducing Discourse Chat (BETA)
Error at LetsEncrypt validation
Can't build Discourse on Ubuntu 20.10
"Posts may not display correctly because" seeing this error in new discourse installation
Rebuild fails on db:migrate w/PG12
Just Created My First Instance But Need Help
Just Created My First Instance But Need Help
SSL Certificate
My website is always down
Caprover install
ArgumentError : Invalid Timezone: US/Pacific-New causes 500 error
Sign-In with Ethereum plugin
Sign-In with Ethereum plugin
Error trying to edit a post with an image in (NginX Proxy Manager?)
Error trying to edit a post with an image in (NginX Proxy Manager?)
Buttons not working on new site install
Error trying to edit a post with an image in (NginX Proxy Manager?)
Manually create and restore Discourse backups
Unable to install Data Explorer Plugin last version
Discourse update keeps failing
Move VB to Discourse (Under TOR network)
Display a value from an external webservice in the header
Discourse standalone
"Review" disappeared from top-level menu
DigitalOcean Port Closed after Installation
Install Discourse on a residential internet with Cloudflare Tunnel
WARNING: containers/app.yml file is world-readable. You can secure this file by running: chmod o-rwx containers/app.yml
WARNING: containers/app.yml file is world-readable. You can secure this file by running: chmod o-rwx containers/app.yml
NoMethodError: undefined method `min_tags_from_required_group'
Server reboot necessitates disco container reboot
Yet Another Fun One
Trouble sending emails
FATAL: lock file "postmaster.pid" is empty
Make auto-linked URLs use HTTPS
FATAL: lock file "postmaster.pid" is empty
Unable to send email from my forum
Default admin doesn’t receive ‘staff’ or ‘admin’ group memberships at first
Failed upgrade v3.0.1 to v3.0.2
Unable to install Data Explorer Plugin last version
Setup Multisite Configuration with Let's Encrypt and no Reverse Proxy
Failed to update Discourse new version
Failed to update Discourse new version
Discourse-app container starts then silently stops
Discourse-app container starts then silently stops
Discourse-app container starts then silently stops
Cant setup admin account
Cant setup admin account
Discourse-app container starts then silently stops
Install Discourse on macOS for development
Setup fails: Cannot allocate memory
Redirect URL with Nginx in Digital Ocean
Problem with post revisions after updating to 2.8.6 stable or 2.9.0.beta7
Email not sending
Recommended Hosting Providers for Self Hosters
Problem with post revisions after updating to 2.8.6 stable or 2.9.0.beta7
Unable to send email from my forum
Ubuntu release upgrades
Unable to send email from my forum
500 errors and failing update
Migrate a phpBB3 forum to Discourse
Discourse is loading indefinitely
Need a better way to explain what branch to be on, why, and what happens
Need a better way to explain what branch to be on, why, and what happens
FAILED TO BOOTSTRAP, even on a fresh installation
Migrate a vBulletin 4 forum to Discourse
Database issues migrating form old version 20150822141540
Discourse on Cloud Run
Ads showing to Trust Levels that should not see them?
Ads showing to Trust Levels that should not see them?
Troubles executing import/migration scripts
Discourse on Cloud Run
Problem with new installation
Troubles executing import/migration scripts
ArgumentError: directory for pid=/.../unicorn.pid not writable
Migrate a vBulletin 4 forum to Discourse
Migrate a vBulletin 4 forum to Discourse
Composer stalls on "Processing Upload" when using events plugin
Migration failed on update calendar plugin to last commit
Discourse is not letting me run setup
Install discourse on localhost in ubuntu
I don't receive the activation email to log in as an admin
Your thoughts on listing Discourse on Vultr Marketplace
SSH Login asking me to configure discourse forum
Seeking help for discourse installation
Seeking help for discourse installation
Seeking help for discourse installation
Attachments: Oops! That page doesn’t exist or is private
Data explorer taking instance down on rebuild
Why nothing embeds in my forum?
Hide logs/staff actions with css
After Docker installation of Discourse, can't reach domain using my web browser
How can I enable: Auto-hyperlinking text to reference to other posts?
Install Discourse following Vultr tutorial
Question about rebuild app
Question about rebuild app
First time Discourse installation not showing
Rake:rebake crashes with errors: PG::ConnectionBad: PQsocket
Cloud basic vs self hosted questions
Question about rebuild app
Timeout when executing rake db:migrate
Issue with renaming user with unicode characters
Unknown Primary Key
Cannot load any images “Uncaught (in promise) no-response: no-response”
Is there an advantage to a Docker installation?
Local backups not deleted after they are uploaded to Amazon S3
Local backups not deleted after they are uploaded to Amazon S3
Version 2.9.0.beta14 - Forum's home won't load on mobile
Unable to load discourses connected with other devices
Changing hostname
403 Forbidden denying a user
Rebuild fails, running 2.8.9
Rebuild fails, running 2.8.9
Discourse installation has been getting slower and slower and slower
Caprover install
Caprover install
What I should do for migration from Cusdis to Discourse
Discourse failing due to expired certificates, rebuilt app, now discourse not working
Website NOT Displaying!
Install Discourse on Ubuntu or Debian for Development
Discourse Unlock
Using discourse purely for Q&A functionality without UI or Authentication
Can't update since Git Pull "Already up to date"
Suddenly boot strapping is failing
Error at LetsEncrypt validation .well-known/acme-challenge
Connection issues on my local instance when Discourse Reactions is installed
After attempting to install plugin, Discourse no longer loads (Phusion Passenger Cannot Start the web application)
Search no longer works after 3.1.0.beta1 update
Content Security Policy: The settings of the page have blocked the loading of a resource ("script-src")
403 Error After Fresh Install
Restoring a snapshotted instance
Problem when updating Discourse Forum
Problem when updating Discourse Forum
Content Security Policy: The settings of the page have blocked the loading of a resource ("script-src")
Content Security Policy: The settings of the page have blocked the loading of a resource ("script-src")
Discourse not working on private AWS EC2
Apt-get update fails inside container yarn repo not signed
Discourse update error
Discourse update error
Discourse update error
How to enable the sidebar?
How to enable the sidebar?
Where is %{base_url} coming from?
Where is %{base_url} coming from?
AI plugin failing installation due to incompatibility with stable branch
My images are not working
My images are not working
PG::UndefinedTable: ERROR
Discourse On Replit?
Createdb: error: database creation failed: ERROR: database "discourse" already exists
Freshly-installed site is showing the error: "Ember CLI is Required in Development Mode"
Install Discourse on CloudPanel
Azure self hosting Discourse packaged by Bitnami?
Error when I send a message in chat [downgraded to Stable from 3.1.0beta4]
Problems building a new server
Error on Ruby 3.2 syntax on standard install
Pre compilation error version 3.0.4
Deployment fails - exec_command.rb:117:in `spawn
Forum stuck on the loading home screen
Discourse AI install error
How can I replace the smtp server configured in discourse?
Max new topic per day with negative wait seconds
How can I replace the smtp server configured in discourse?
Max new topic per day with negative wait seconds
Web server is down Error code 521
Include the analytics count in our community home page
Some settings aren't saving
Steps involved to downgrade from 2GB to 1GB on DO?
Some settings aren't saving
Some settings aren't saving
Problem when installing Discourse on Openshift
Uploading multiple files fails
Site loads on IP, but not on subdomain
When I start a conversation with the AI, it gives two answers to my question
Site loads on IP, but not on subdomain
Site loads on IP, but not on subdomain
Getting art gallery site up again after Vultr server hard restart
Move a Discourse site to another VPS with rsync
Docker-compose.yml to run discourse locally
Clone topic frame
Discourse 3.1 Docker?
NoMethodError on development install
NoMethodError on development install
Discourse AI install error
Migration trouble related to DiscourseJsProcessor?
Trouble bootstrapping with RDS --- could not open certificate file
Error message when uploading logo
Is Docker duplicating data?
Set up Let’s Encrypt with multiple domains / redirects
Local-Network Only Discourse
Notifications are coming again even after reading them [Private Topics plugin]
Looking for a new home on Discourse
Looking for a new home on Discourse
Looking for a new home on Discourse
Backup installation problem?
I am not able to generate my Logo
Discourse setup on local server: PostgreSQL and setup script issues
Transition problem
Discourse setup on local server: PostgreSQL and setup script issues
Setting a custom IP doesn't work?
Setting a custom IP doesn't work?
Getting a '500' error when trying to install
Unicode usernames
Getting a '500' error when trying to install
Error while updating discourse installation
How to install updates with console
I can't display my policy
Gamification no longer available
I can't display my policy
Locations Plugin :earth_africa:
New installation not appearing at domain name or IP address
Bottom line: Is Discourse now $12/month minimum on DigitalOcean? 😔 [Not yet! :slight_smile:]
I can't start a Discourse
Discourse offline after failed upgrade "bootstrap failed with exit code 5"
"Ensure ad-blockers are disabled and try reloading the page." when enabling Data Explorer
Discourse Hosting with traditional hosting interface
Docker for development vs the rails server + ember
Docker for development vs the rails server + ember
CloudFlare and Real IP
Discourse v3.0.6 to v3.1.1 upgrade error - undefined method `register_bookmarkable' for Bookmark:Class
Not enough space to rebuild
Not enough space to rebuild
Not enough space to rebuild
What IP information does Discourse collect?
Not enough space to rebuild
Why is my upload limit 100mb?It's set to 500mb
How to install SSL certificate?
How to install SSL certificate?
How to install SSL certificate?
Discourse v3.0.6 to v3.1.1 upgrade error - undefined method `register_bookmarkable' for Bookmark:Class
Trouble with Google Bucket for backup
Stuck with 500 error after weird bugs and a rebuild
Stuck with 500 error after weird bugs and a rebuild
Require, I18n, define not defined? due to bunny.net optimizer breaking javascript
Abuse of Free Trial
Docker not found
Are Form Templates available on self-hosted sites?
Duplicate displayed users
Backup failure when temp backup file is moved to backups/default directory
How to Install Discourse on Ubuntu
Is there a reason why the forum won't connect?-The issue has been resolved
No documentation for Google login for fresh installations
:cn: Installing the Discourse development environment on Ubuntu 在 Ubuntu 上安装 Discourse 开发环境
Need help installing Discourse
"No such file or directory" when installing Discourse
Discourse-doctor nagging about swap creation
New to Discourse? Start here!
How do I create Discourse forum with docker and VPS?
I can't display my policy
Vagrantfile in discourse_docker repo - for production?
Ghost & Discourse SSO implementation
It Is Necessary to select Discourse?
Cannot open discourse after installation
How to determine performance bottleneck?
Ghost & Discourse SSO implementation
Upgrade failed, "FAILED TO BOOTSTRAP", error 137
Hoow to setup Discourse on AAAA (IPv6)?
Error starting userland proxy: listen tcp4 0.0.0.0:443: bind: address already in use
UI randomly fails during a short period
Sidekiq not running. Sidekiq heartbeat test failed, restarting
Sorry if this is a dumb Q, but how to I install/enable the fancy edtor?
Sorry if this is a dumb Q, but how to I install/enable the fancy edtor?
Cannot rebake after setting up CDN
Bundle install fails after adding gem "mysql2" and gem "reverse_markdown"
PEM_read_bio_X509_AUX() failed (SSL: error:0909006C:PEM routines:get_name:no start line:Expecting: TRUSTED CERTIFICATE)
Management of NVTs and CVEs
2.7.0.beta2 upgrade failed
No information requested on install
Site won't load / can't open in safari / other issues
Domain & Subdomains
Installation Help on namehero.com
Trying to install Discourse on portainer but it's not pulling the base container
It Is Necessary to select Discourse?
Composer stalls on "Processing Upload" when using events plugin
Discourse get started screen is too big
Install and hosted related issues
Stop and remove docker container by mistake
Connection timed out when running SSH connection command