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路径是否正确
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
服务器托管,北京服务器托管,服务器租用 http://www.fwqtg.net
相关推荐: 案例:CentOS8 在 MySQL8.0 实现半同步复制
异步复制 MySQL 默认的复制即是异步的,主库在执行完客户端提交的事务后会立即将结果返给给客户端,并不关心从库是否已经接收并处理,这样就会有一个问题,主节点如果 crash 掉了,此时主节点上已经提交的事务可能并没有传到从库上,如果此时,强行将从提升为主,可…