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

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

你可能感兴趣的:(docker,jenkins,servlet)