Docker-compose 安装 SVN
作者:互联网
服务器IP :172.30.181.120
cat > docker-compose.yaml << EOF
version: '3.1'
services:
svn:
image: elleflorio/svn-server
container_name: svn
restart: always
ports:
- 8090:80
volumes:
- /etc/localtime:/etc/localtime:ro
# 将用户权限配置文件映射到本地
- ./config/subversion/subversion-access-control:/etc/subversion/subversion-access-control
- ./config/subversion/passwd:/etc/subversion/passwd
# 将代码仓库映射到本地
- ./config/subversion/repo/:/home/svn
EOF
创建空文件
mkdir -p ./config/subversion/repo/
echo "" > ./config/subversion/subversion-access-control
echo "" > ./config/subversion/passwd
# 必须 777 权限
chmod -R 777 ./config/
# 启动
docker-compose up -d
访问管理页面
http://172.30.181.120:8090/svnadmin
admin/admin
初始化配置, 创建配置文件、创建仓库目录
/etc/subversion/subversion-access-control
/etc/subversion/passwd
/home/svn
/usr/bin/svn
/usr/bin/svnadmin
为路径授权
SVN Checkout 地址
http://172.30.181.120:8090/svn/data/
admin/admin
标签:SVN,compose,admin,181.120,subversion,Docker,172.30,config 来源: https://www.cnblogs.com/shunzi115/p/16319732.html