docker-stack.yml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  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:11.11.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.6.2
  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. env_file: .env
  50. healthcheck:
  51. test: [ "CMD", "curl", "http://localhost:12345/actuator/health" ]
  52. interval: 30s
  53. timeout: 5s
  54. retries: 3
  55. volumes:
  56. - dolphinscheduler-logs:/opt/dolphinscheduler/logs
  57. - dolphinscheduler-shared-local:/opt/soft
  58. - dolphinscheduler-resource-local:/dolphinscheduler
  59. networks:
  60. - dolphinscheduler
  61. deploy:
  62. mode: replicated
  63. replicas: 1
  64. dolphinscheduler-alert:
  65. image: apache/dolphinscheduler-alert-server
  66. env_file: .env
  67. healthcheck:
  68. test: [ "CMD", "curl", "http://localhost:50053/actuator/health" ]
  69. interval: 30s
  70. timeout: 5s
  71. retries: 3
  72. volumes:
  73. - dolphinscheduler-logs:/opt/dolphinscheduler/logs
  74. networks:
  75. - dolphinscheduler
  76. deploy:
  77. mode: replicated
  78. replicas: 1
  79. dolphinscheduler-master:
  80. image: apache/dolphinscheduler-master
  81. env_file: .env
  82. healthcheck:
  83. test: [ "CMD", "curl", "http://localhost:50053/actuator/health" ]
  84. interval: 30s
  85. timeout: 5s
  86. retries: 3
  87. volumes:
  88. - dolphinscheduler-logs:/opt/dolphinscheduler/logs
  89. - dolphinscheduler-shared-local:/opt/soft
  90. networks:
  91. - dolphinscheduler
  92. deploy:
  93. mode: replicated
  94. replicas: 1
  95. dolphinscheduler-worker:
  96. image: apache/dolphinscheduler-worker
  97. env_file: .env
  98. healthcheck:
  99. test: [ "CMD", "curl", "http://localhost:50053/actuator/health" ]
  100. interval: 30s
  101. timeout: 5s
  102. retries: 3
  103. volumes:
  104. - dolphinscheduler-worker-data:/tmp/dolphinscheduler
  105. - dolphinscheduler-logs:/opt/dolphinscheduler/logs
  106. - dolphinscheduler-shared-local:/opt/soft
  107. - dolphinscheduler-resource-local:/dolphinscheduler
  108. networks:
  109. - dolphinscheduler
  110. deploy:
  111. mode: replicated
  112. replicas: 1
  113. dolphinscheduler-python-gateway:
  114. image: apache/dolphinscheduler-python-gateway
  115. ports:
  116. - 54321:54321
  117. - 25333:25333
  118. env_file: .env
  119. healthcheck:
  120. test: [ "CMD", "curl", "http://localhost:54321/actuator/health" ]
  121. interval: 30s
  122. timeout: 5s
  123. retries: 3
  124. volumes:
  125. - dolphinscheduler-logs:/opt/dolphinscheduler/logs
  126. - dolphinscheduler-shared-local:/opt/soft
  127. - dolphinscheduler-resource-local:/dolphinscheduler
  128. networks:
  129. - dolphinscheduler
  130. deploy:
  131. mode: replicated
  132. replicas: 1
  133. networks:
  134. dolphinscheduler:
  135. driver: overlay
  136. volumes:
  137. dolphinscheduler-postgresql:
  138. dolphinscheduler-zookeeper:
  139. dolphinscheduler-worker-data:
  140. dolphinscheduler-logs:
  141. dolphinscheduler-shared-local:
  142. dolphinscheduler-resource-local: