• dolphinscheduler docker compose安装配置


    database init

    #!/bin/sh
    
    docker run -d --name dolphinscheduler-tools \
        -e DATABASE="postgresql" \
        -e SPRING_DATASOURCE_URL="jdbc:postgresql://localhost:5432/dolphinscheduler" \
        -e SPRING_DATASOURCE_USERNAME="root" \
        -e SPRING_DATASOURCE_PASSWORD="123456" \
        --net host \
        apache/dolphinscheduler-tools:"3.1.8" tools/bin/upgrade-schema.sh
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9

    .env

    DolphinScheduler_HOME=/opt/apache/dolphinscheduler
    DolphinScheduler_MASTER_PORT=5678
    DolphinScheduler_WORKER_PORT=1234
    DolphinScheduler_API_PORT=12345
    DolphinScheduler_ALERT_PORT=50052
    Zookeeper_CONNECT_STRING=zoo1:2181,zoo2:2182,zoo3:2183
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6

    docker-compose.yml

    version: '3.1'
    
    services:
      dolphinscheduler-master:
        image: apache/dolphinscheduler-master:3.1.8
        restart: always
        env_file:
          - .env
        hostname: dolphinscheduler-master
        extra_hosts:
          - "zoo1:192.168.0.208"
          - "zoo2:192.168.0.208"
          - "zoo3:192.168.0.208"
          - "postgresql-database:192.168.0.208"
        expose:
          - "${DolphinScheduler_MASTER_PORT}"
        deploy:
          replicas: 1
        environment:
          DATABASE: postgresql
          SPRING_DATASOURCE_URL: jdbc:postgresql://postgresql-database:5432/dolphinscheduler
          SPRING_DATASOURCE_USERNAME: root
          SPRING_DATASOURCE_PASSWORD: 123456
          REGISTRY_ZOOKEEPER_CONNECT_STRING: "${Zookeeper_CONNECT_STRING}"
      dolphinscheduler-worker:
        image: apache/dolphinscheduler-worker:3.1.8
        restart: always
        env_file:
          - .env
        hostname: dolphinscheduler-worker
        extra_hosts:
          - "zoo1:192.168.0.208"
          - "zoo2:192.168.0.208"
          - "zoo3:192.168.0.208"
          - "postgresql-database:192.168.0.208"
        expose:
          - "${DolphinScheduler_WORKER_PORT}"
        deploy:
          replicas: 1
        environment:
          DATABASE: postgresql
          SPRING_DATASOURCE_URL: jdbc:postgresql://postgresql-database:5432/dolphinscheduler
          SPRING_DATASOURCE_USERNAME: root
          SPRING_DATASOURCE_PASSWORD: 123456
          REGISTRY_ZOOKEEPER_CONNECT_STRING: "${Zookeeper_CONNECT_STRING}"
      dolphinscheduler-api:
        image: apache/dolphinscheduler-api:3.1.8
        restart: always
        env_file:
          - .env
        hostname: dolphinscheduler-api
        extra_hosts:
          - "zoo1:192.168.0.208"
          - "zoo2:192.168.0.208"
          - "zoo3:192.168.0.208"
          - "postgresql-database:192.168.0.208"
        expose:
          - "${DolphinScheduler_API_PORT}"
        ports:
          - ${DolphinScheduler_API_PORT}:${DolphinScheduler_API_PORT}
        deploy:
          replicas: 1
        environment:
          DATABASE: postgresql
          SPRING_DATASOURCE_URL: jdbc:postgresql://postgresql-database:5432/dolphinscheduler
          SPRING_DATASOURCE_USERNAME: root
          SPRING_DATASOURCE_PASSWORD: 123456
          REGISTRY_ZOOKEEPER_CONNECT_STRING: "${Zookeeper_CONNECT_STRING}"
      dolphinscheduler-alert-server:
        image: apache/dolphinscheduler-alert-server:3.1.8
        restart: always
        env_file:
          - .env
        hostname: dolphinscheduler-alert-server
        extra_hosts:
          - "zoo1:192.168.0.208"
          - "zoo2:192.168.0.208"
          - "zoo3:192.168.0.208"
          - "postgresql-database:192.168.0.208"
        expose:
          - "${DolphinScheduler_ALERT_PORT}"
        deploy:
          replicas: 1
        environment:
          DATABASE: postgresql
          SPRING_DATASOURCE_URL: jdbc:postgresql://postgresql-database:5432/dolphinscheduler
          SPRING_DATASOURCE_USERNAME: root
          SPRING_DATASOURCE_PASSWORD: 123456
          REGISTRY_ZOOKEEPER_CONNECT_STRING: "${Zookeeper_CONNECT_STRING}"
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    • 31
    • 32
    • 33
    • 34
    • 35
    • 36
    • 37
    • 38
    • 39
    • 40
    • 41
    • 42
    • 43
    • 44
    • 45
    • 46
    • 47
    • 48
    • 49
    • 50
    • 51
    • 52
    • 53
    • 54
    • 55
    • 56
    • 57
    • 58
    • 59
    • 60
    • 61
    • 62
    • 63
    • 64
    • 65
    • 66
    • 67
    • 68
    • 69
    • 70
    • 71
    • 72
    • 73
    • 74
    • 75
    • 76
    • 77
    • 78
    • 79
    • 80
    • 81
    • 82
    • 83
    • 84
    • 85
    • 86
    • 87
    • 88
    • 89
  • 相关阅读:
    svn服务支持网页显示并增加在线预览功能,支持视频在线播放,可在公司内部作为文档管理使用
    ElasticSearch Java API的使用
    主管发话:一周搞不定用友U8 ERP跨业务数据分析,明天就可以“毕业”了
    CFD基本概念
    The Last Naruto,兼容IE11的vue脚手架
    【软件测试】自动化测试如何管理测试数据
    Java Map中如何获取Map集合中所有value呢?
    HDLBits-Lfsr32
    【vxe-table】@enter.keyup.native实现在列表中回车光标向右移动聚焦及vxe-table的一些方法的使用(具体实现+踩坑篇)
    Java教程:如何不使用递归实现文件夹的遍历?
  • 原文地址:https://blog.csdn.net/hudmhacker/article/details/132698195