docker-stack.yml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. # Licensed to the Apache Software Foundation (ASF) under one
  2. # or more contributor license agreements. See the NOTICE file
  3. # distributed with this work for additional information
  4. # regarding copyright ownership. The ASF licenses this file
  5. # to you under the Apache License, Version 2.0 (the
  6. # "License"); you may not use this file except in compliance
  7. # with the License. You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16. version: "3.1"
  17. services:
  18. dolphinscheduler-postgresql:
  19. image: bitnami/postgresql:15.2.0
  20. environment:
  21. TZ: Asia/Shanghai
  22. POSTGRESQL_USERNAME: root
  23. POSTGRESQL_PASSWORD: root
  24. POSTGRESQL_DATABASE: dolphinscheduler
  25. volumes:
  26. - dolphinscheduler-postgresql:/bitnami/postgresql
  27. networks:
  28. - dolphinscheduler
  29. deploy:
  30. mode: replicated
  31. replicas: 1
  32. dolphinscheduler-zookeeper:
  33. image: bitnami/zookeeper:3.7.1
  34. environment:
  35. TZ: Asia/Shanghai
  36. ALLOW_ANONYMOUS_LOGIN: "yes"
  37. ZOO_4LW_COMMANDS_WHITELIST: srvr,ruok,wchs,cons
  38. volumes:
  39. - dolphinscheduler-zookeeper:/bitnami/zookeeper
  40. networks:
  41. - dolphinscheduler
  42. deploy:
  43. mode: replicated
  44. replicas: 1
  45. dolphinscheduler-api:
  46. image: apache/dolphinscheduler-api
  47. ports:
  48. - 12345:12345
  49. - 25333:25333
  50. env_file: .env
  51. healthcheck:
  52. test: [ "CMD", "curl", "http://localhost:12345/actuator/health" ]
  53. interval: 30s
  54. timeout: 5s
  55. retries: 3
  56. volumes:
  57. - dolphinscheduler-logs:/opt/dolphinscheduler/logs
  58. - dolphinscheduler-shared-local:/opt/soft
  59. - dolphinscheduler-resource-local:/dolphinscheduler
  60. networks:
  61. - dolphinscheduler
  62. deploy:
  63. mode: replicated
  64. replicas: 1
  65. dolphinscheduler-alert:
  66. image: apache/dolphinscheduler-alert-server
  67. env_file: .env
  68. healthcheck:
  69. test: [ "CMD", "curl", "http://localhost:50053/actuator/health" ]
  70. interval: 30s
  71. timeout: 5s
  72. retries: 3
  73. volumes:
  74. - dolphinscheduler-logs:/opt/dolphinscheduler/logs
  75. networks:
  76. - dolphinscheduler
  77. deploy:
  78. mode: replicated
  79. replicas: 1
  80. dolphinscheduler-master:
  81. image: apache/dolphinscheduler-master
  82. env_file: .env
  83. healthcheck:
  84. test: [ "CMD", "curl", "http://localhost:50053/actuator/health" ]
  85. interval: 30s
  86. timeout: 5s
  87. retries: 3
  88. volumes:
  89. - dolphinscheduler-logs:/opt/dolphinscheduler/logs
  90. - dolphinscheduler-shared-local:/opt/soft
  91. networks:
  92. - dolphinscheduler
  93. deploy:
  94. mode: replicated
  95. replicas: 1
  96. dolphinscheduler-worker:
  97. image: apache/dolphinscheduler-worker
  98. env_file: .env
  99. healthcheck:
  100. test: [ "CMD", "curl", "http://localhost:50053/actuator/health" ]
  101. interval: 30s
  102. timeout: 5s
  103. retries: 3
  104. volumes:
  105. - dolphinscheduler-worker-data:/tmp/dolphinscheduler
  106. - dolphinscheduler-logs:/opt/dolphinscheduler/logs
  107. - dolphinscheduler-shared-local:/opt/soft
  108. - dolphinscheduler-resource-local:/dolphinscheduler
  109. networks:
  110. - dolphinscheduler
  111. deploy:
  112. mode: replicated
  113. replicas: 1
  114. networks:
  115. dolphinscheduler:
  116. driver: overlay
  117. volumes:
  118. dolphinscheduler-postgresql:
  119. dolphinscheduler-zookeeper:
  120. dolphinscheduler-worker-data:
  121. dolphinscheduler-logs:
  122. dolphinscheduler-shared-local:
  123. dolphinscheduler-resource-local: