aliyun install Discourse log

apt updatenginx

apt install wgetgit

wget -qO- https://get.docker.com/ | sh

vim /etc/default/dockergithub

DOCKER_OPTS="--registry-mirror=http://aad0405c.m.daocloud.io"

service docker restartweb

mkdir /var/discourse
git clone https://github.com/discourse/discourse_docker.git /var/discourse
cd /var/discourse
 
cp samples/standalone.yml containers/app.yml
 
vim containers/app.yml
 

templates:
  - "templates/web.ratelimited.template.yml"
  - "templates/web.china.template.yml"docker

  ## TODO: The domain name this Discourse instance will respond to
  DISCOURSE_HOSTNAME: 'bbs.icoolpy.com'shell

  ## TODO: List of comma delimited emails that will be made admin and developer
  ## on initial signup example 'user1@example.com,user2@example.com'
  DISCOURSE_DEVELOPER_EMAILS: 'admin@icoolpy.com'bootstrap

## TODO: The SMTP mail server used to validate new accounts and send notifications
DISCOURSE_SMTP_ADDRESS: smtp.exmail.qq.com         # required
DISCOURSE_SMTP_PORT: 25                        # (optional, default 587)
DISCOURSE_SMTP_USER_NAME: admin@icoolpy.com      # required
DISCOURSE_SMTP_PASSWORD: ******               # required, WARNING the char '#' in pw can cause problems!
DISCOURSE_SMTP_AUTHENTICATION: login
DISCOURSE_SMTP_OPENSSL_VERIFY_MODE: none
#DISCOURSE_SMTP_ENABLE_START_TLS: true           # (optional, default true)vim

 

//獨立nginx配置bash

https://meta.discourse.org/t/running-other-websites-on-the-same-machine-as-discourse/17247app

 

./launcher bootstrap app
 
./launcher start app
 
帳號
cd /var/discourse
./launcher enter app
rake admin:create
 
登錄dissourse 設置-》必填-》notification email-》admin@icoolpy.com
 
Usage: launcher COMMAND CONFIG [--skip-prereqs]
Commands:
    start:      啓動/初始化容器
    stop:       關閉運行中的容器
    restart:    重啓容器
    destroy:    關閉並刪除容器
    enter:      使用 nsenter 進入容器
    ssh:        在運行中的容器中啓動 bash shell
    logs:       容器的 Docker 日誌
    mailtest:   測試容器中的郵件配置
    bootstrap:  基於配置文件預設模板初始化容器
    rebuild:    重建一個容器(刪除老容器,初始化,啓動新容器)
相關文章
相關標籤/搜索