What is Answer?
Answer
It is an open source knowledge-based community software. You can use it to quickly build your Q&A community for product technical support, customer support, user communication, etc.
Answer
It is a technical question-and-answer community developed by the domestic SegmentFault
Sifu team. It Answer
not only has the basic functions of building a question-and-answer platform ( Q&A Platform
), but also adds community functions such as tag content management, scoring and reputation value system.
Install
build database
The database is directly used by SynologyMariaDB 10
Created a database named phpMyAdmin
inanswer
For the sake of illustration, we assume that the database password is
123456
Install Answer
Install it in Docker mode on Synology.
Search in the registry answer
, select the first one answerdev/answer
, version selection latest
.
At the time of writing this article,
latest
the version corresponds to1.0.2
;
roll
Inside docker
the folder , create a new folder answer
with a subfolder inside itdata
folder | mount path | illustrate |
---|---|---|
docker/answer/data |
/data |
Store settings, language packs, etc. |
port
It is fine if the local port does not conflict. If you are not sure, you can check it with the command
# 查看端口占用
netstat -tunlp | grep 端口号
local port | container port |
---|---|
9080 |
80 |
command line installation
If you are familiar with the command line, it may be docker cli
faster
# 新建文件夹 answer 和 子目录
mkdir -p /volume2/docker/answer/data
# 进入 answer 目录
cd /volume2/docker/answer
# 运行容器
docker run -d \
--restart unless-stopped \
--name answer \
-p 9080:80 \
-v $(pwd)/data:/data \
answerdev/answer:latest
You can also use docker-compose
the installation , save the following content as docker-compose.yml
a file
version: "3"
services:
answer:
image: answerdev/answer:1.0.2
container_name: answer
restart: on-failure
ports:
- '9080:80'
volumes:
- ./data:/data
Then execute the following command
# 新建文件夹 answer 和 子目录
mkdir -p /volume2/docker/answer/data
# 进入 answer 目录
cd /volume2/docker/answer
# 将 docker-compose.yml 放入当前目录
# 一键启动
docker-compose up -d
run
Enter in the browser http://群晖IP:9080
to see the setup wizard interface
If the language recognition is wrong, you can select it through the drop-down box简体中文
Next set up the database
Generate settings fileconfig.yaml
The files are located in /data/conf
the directory
Next set the site information
Note that the password cannot be less than 8 characters
done, call it a day
currently empty
Log in with the previously set administrator account and password
后台管理
advanced settings
The default time zone is incorrect, Lao Su made a modification
Answer
Adding questions to is easy. Just click the button and start writing your question. Answer
Has a built-in feature-rich editor
It is very simple to use, so I won’t expand it here
reference documents
answerdev/answer: An open-source knowledge-based community software. You can use it quickly to build Q&A community for your products, customers, teams, and more.
地址:https://github.com/answerdev/answer
Answer
address: https://answer.dev/