github推荐安装方法
1
| git clone https://github.com/wekan/wekan
|
Then edit docker-compose.yml with these lines uncommented this way:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| #------------------------------------------------------------------------------------- # ==== BUILD wekan-app DOCKER CONTAINER FROM SOURCE, if you uncomment these ==== # ==== and use commands: docker-compose up -d --build build: context: . dockerfile: Dockerfile args: - NODE_VERSION=${NODE_VERSION} - METEOR_RELEASE=${METEOR_RELEASE} - NPM_VERSION=${NPM_VERSION} - ARCHITECTURE=${ARCHITECTURE} - SRC_PATH=${SRC_PATH} - METEOR_EDGE=${METEOR_EDGE} - USE_EDGE=${USE_EDGE} #-------------------------------------------------------------------------------------
|
1
| docker-compose up -d --build
|
安装docker-compose
1 2 3 4 5 6 7
| 接下来安装docker-compose,运行命令:
curl -L "https://github.com/docker/compose/releases/download/1.23.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose 给docker-compose执行权限,运行命令:
chmod +x /usr/local/bin/docker-compose 检查,运行docker-compose --version,如下:
|
docker-compose速度太慢解决方式
- 执行docker-compose up -d –build这个命令太慢
解决办法只有一个一个一个,那就是换源!
使用的是github的源基本都是超时,此时使用:
1
| curl -L https://get.daocloud.io/docker/compose/releases/download/1.25.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
|
记得修改权限,否则会报错:
1
| sudo chmod +x /usr/local/bin/docker-compose
|
最后查看版本:
1
| docker-compose --version
|