開發與維運

Centos7下Docker搭建WookTeam輕量級在線團隊協作工具(失敗)

1.docker安裝和啟動

wget https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo -O /etc/yum.repos.d/docker-ce.repo
yum install docker-ce docker-compose git -y
systemctl start docker
systemctl enable docker
systemctl status docker

2.配置鏡像加速器

針對Docker客戶端版本大於 1.10.0 的用戶
您可以通過修改daemon配置文件/etc/docker/daemon.json來使用加速器

sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'EOF'
{
  "registry-mirrors": ["https://780urbjd.mirror.aliyuncs.com"]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker

3.下載項目

git clone https://gitee.com/do_1977107948/wookteam
cd wookteam
cp .env.docker .env

4.構建項目

 ./cmd build php
 ./cmd composer install
 ./cmd artisan key:generate
 ./cmd artisan migrate --seed
 ./cmd php bin/wookteam --port=8080
 ./cmd up -d
 ./cmd npm install
 ./cmd npm run prod
 ./cmd supervisorctl restart all

一直卡在這裡.下載很慢.可能需要等待5分鐘.放棄部署
image.png
image.png

Leave a Reply

Your email address will not be published. Required fields are marked *