以下是配置文件docker-compose:
data:
build: jenkins-data
master:
build: jenkins-master
volumes_from:
- data
ports:
- "50000:50000"
nginx:
build: jenkins-nginx
ports:
- "80:80"
- "443:443"
links:
- master:jenkins-master
# volumes:
# - /etc/letsencrypt:/etc/letsencrypt
slave:
build: jenkins-slave
#slavedotnet:
# build: jenkins-dotnetcore-slave
希望有帮助。
运行以下命令后:
docker-compose -f jenkinsDocker/docker-compose.yml -p jenkins up -d nginx data master
宝慕林4294392
相关分类