首页 > 代码库 > aliyun install Discourse log

aliyun install Discourse log

apt update

apt install wget

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

vim /etc/default/docker

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

service docker restart

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/postgres.template.yml"
  - "templates/redis.template.yml"
  - "templates/web.template.yml"
  - "templates/web.ratelimited.template.yml"
  - "templates/web.china.template.yml"

## How many concurrent web requests are supported? Depends on memory and CPU cores.
  ## will be set automatically by bootstrap based on detected CPUs, or you can override
  UNICORN_WORKERS: 2

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

  ## Uncomment if you want the container to be started with the same
  ## hostname (-h option) as specified above (default "$hostname-$config")
  #DOCKER_USE_HOSTNAME: true

  ## 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‘

  ## TODO: The SMTP mail server used to validate new accounts and send notifications
  DISCOURSE_SMTP_ADDRESS: smtp.exmail.qq.com         # required
  DISCOURSE_SMTP_PORT: 465                        # (optional, default 587)
  DISCOURSE_SMTP_USER_NAME: admin@icoolpy.com      # required
  DISCOURSE_SMTP_PASSWORD: 2000Jac               # required, WARNING the char ‘#‘ in pw can cause problems!
  DISCOURSE_SMTP_ENABLE_START_TLS: true           # (optional, default true)

 
./launcher bootstrap app
 
./launcher start app
 
账号
cd /var/discourse
./launcher enter app
rake admin:create

aliyun install Discourse log