docker-compose -f GitCloneCompose.yml up && docker-compose -f GitCloneCompose.yml rm
version: "3"
services:
synDataClone:
image: wfly/git:2.0.6
volumes:
# 存放代码的地方
- gitspace:/gitspace
# 存放ssh key配置
# - sshConf:/etc/git/sshConf
restart: "no"
environment:
# 值为空 则不clone
execShell: 1
# 值为空则不删除旧代码
removeOldProject:
projectName: ynvideo-sync-data
gitRemotePath: http://xxx/ynvideo-sync-data.git
volumes:
gitspace:
external: true
Content type
Image
Digest
Size
15.2 MB
Last updated
about 6 years ago
docker pull wfly/git:2.0.7