docker-compose部署Jenkins/neo4j脚本--持续更新

yaml 复制代码
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路径是否正确

yaml 复制代码
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
相关推荐
lost_n_found18 小时前
Linux-CentOS从零搭建Jenkins(上),包教包会
jenkins
sauTCc19 小时前
Docker初探
docker
宁zz19 小时前
乌班图安装jenkins
运维·jenkins
c无序19 小时前
【Docker-7】Docker是什么+Docker版本+Docker架构+Docker生态
docker·容器·架构
FixBug_Nick19 小时前
使用Docker安装及使用最新版本的Jenkins
docker·容器·jenkins
Zero_to_zero12341 天前
解决docker的ubuntu系统中文乱码问题
ubuntu·docker·容器
@郭小茶1 天前
docker-compose方式部署docker项目
运维·docker·容器
程序员 小柴1 天前
docker的与使用
java·docker·eureka
ghostwritten1 天前
Docker Registry Clean
运维·docker·容器
宋冠巡1 天前
Windows安装Docker(Docker Desktop)
windows·docker·容器