version: '3.7'
services:
jenkins:
image: jenkins/jenkins:latest
user: root
restart: always
container_name: jenkins
ports:
- 18080:8080
volumes:
- /home/jenkins:/var/jenkins_home
- /home/apache-maven-3.8.6:/home/apache-maven-3.8.6
- /home/maven/repository:/home/maven/repository
- /etc/localtime:/etc/localtime
- /usr/bin/docker:/usr/bin/docker
- /var/run/docker.sock:/var/run/docker.sock
- /usr/local/bin/docker-compose:/usr/local/bin/docker-compose
- /home/compose:/home/compose
- /usr/bin/zip:/usr/bin/zip
- /usr/bin/unzip:/usr/bin/unzip
- /usr/bin/cp:/usr/bin/cp
- /usr/local/nginx/html:/usr/local/nginx/html
- /usr/local/jdk1.8.0_144:/usr/local/jdk1.8.0_144
- /home/gwfd-szls-web:/home/gwfd-szls-web
- /home/gwfd-station:/home/gwfd-station
environment:
LOGGING_LEVEL: "INFO"
deploy:
restart_policy:
condition: on-failure
delay: 15s
如果出现权限不够:注意/usr/local/bin/docker-compose路径是否正确文章来源地址https://www.toymoban.com/news/detail-826004.html
version: '3.7'
services:
neo4j:
image: neo4j:latest
restart: always
container_name: neo4j
ports:
- 7474:7474
- 7687:7687
volumes:
- /home/neo4j/data:/data
- /home/neo4j/logs:/logs
- /home/neo4j/conf:/var/lib/neo4j/conf
- /home/neo4j/import:/var/lib/neo4j/import
environment:
- NEO4J_AUTH=neo4j/szls@123
deploy:
restart_policy:
condition: on-failure
delay: 15s
文章来源:https://www.toymoban.com/news/detail-826004.html
到了这里,关于docker-compose部署Jenkins/neo4j脚本--持续更新的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!