1.更新Ubuntu 22.04服务器

sudo apt update -y
sudo apt-get install apt-transport-https ca-certificates git curl gnupg -y

2.添加Docker GPG密钥和存储库

sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt update

3. 安装 Docker for Discourse

sudo apt-get install docker-ce docker-ce-cli containerd.io -y

4.下载Discourse

sudo mkdir /var/discourse
sudo git clone https://github.com/discourse/discourse_docker.git /var/discourse

5. 安装和配置 Discourse

cd /var/discourse
sudo ./discourse-setup

6. 访问网页界面

7. 注册管理员帐户

8. Discourse升级

cd /var/discourse
sudo git pull
sudo ./launcher rebuild app
如果觉得我的文章对你有用,请随意赞赏