git clone --recursive https://github.com/arcturus-weather/.github.git
安装 docker
sudo curl -sSL get.docker.com | sh
修改国内镜像源
sudo mkdir -p /etc/docker
sudo vim /etc/docker/daemon.json
{
"registry-mirrors": [
"https://docker.mirrors.ustc.edu.cn",
"https://mirror.ccs.tencentyun.com",
"https://hub-mirror.c.163.com",
"https://reg-mirror.qiniu.com"
]
}
systemctl daemon-reload
systemctl restart docker
测试安装是否成功
sudo docker run hello-world
安装 docker-compose
sudo curl -L \
"https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" \
-o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
测试安装是否成功
docker-compose --version
在 web
和 server
文件夹下新建 .env
文件(具体内容见相应文件夹), 最后运行
sudo docker-compose up
访问地址 http://localhost