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:    重建一个容器(删除老容器,初始化,启动新容器)
相关文章
相关标签/搜索