安装CodeFever管理自己的代码

Posted on 2023-08-25  535 Views


使用Docker 镜像安装

拉取镜像并启动

启动 CodeFever Communiy 版本 的 Docker 镜像

docker container run \
  -d --privileged=true --name codefever \
  -p 8800:80 -p 2200:22 \
  -v ~/config/db:/var/lib/mysql \
  -v ~/config/env:/data/www/codefever-community/env \
  -v ~/config/logs:/data/www/codefever-community/application/logs \
  -v ~/config/git-storage:/data/www/codefever-community/git-storage \
  -v ~/config/file-storage:/data/www/codefever-community/file-storage \
  -it pgyer/codefever-community

容器端口80 宿主机端口8800

容器端口22 宿主机端口2200

数据在/data/www/git-storage