docker-stack.yml 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  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.4"
  17. services:
  18. dolphinscheduler-postgresql:
  19. image: bitnami/postgresql:latest
  20. ports:
  21. - 5432:5432
  22. environment:
  23. TZ: Asia/Shanghai
  24. POSTGRESQL_USERNAME: root
  25. POSTGRESQL_PASSWORD: root
  26. POSTGRESQL_DATABASE: dolphinscheduler
  27. volumes:
  28. - dolphinscheduler-postgresql:/bitnami/postgresql
  29. networks:
  30. - dolphinscheduler
  31. deploy:
  32. mode: replicated
  33. replicas: 1
  34. dolphinscheduler-zookeeper:
  35. image: bitnami/zookeeper:latest
  36. ports:
  37. - 2181:2181
  38. environment:
  39. TZ: Asia/Shanghai
  40. ALLOW_ANONYMOUS_LOGIN: "yes"
  41. ZOO_4LW_COMMANDS_WHITELIST: srvr,ruok,wchs,cons
  42. volumes:
  43. - dolphinscheduler-zookeeper:/bitnami/zookeeper
  44. networks:
  45. - dolphinscheduler
  46. deploy:
  47. mode: replicated
  48. replicas: 1
  49. dolphinscheduler-api:
  50. image: apache/dolphinscheduler:latest
  51. command: api-server
  52. ports:
  53. - 12345:12345
  54. environment:
  55. TZ: Asia/Shanghai
  56. DATABASE_HOST: dolphinscheduler-postgresql
  57. DATABASE_PORT: 5432
  58. DATABASE_USERNAME: root
  59. DATABASE_PASSWORD: root
  60. DATABASE_DATABASE: dolphinscheduler
  61. ZOOKEEPER_QUORUM: dolphinscheduler-zookeeper:2181
  62. RESOURCE_STORAGE_TYPE: HDFS
  63. RESOURCE_UPLOAD_PATH: /dolphinscheduler
  64. FS_DEFAULT_FS: file:///
  65. healthcheck:
  66. test: ["CMD", "/root/checkpoint.sh", "ApiApplicationServer"]
  67. interval: 30s
  68. timeout: 5s
  69. retries: 3
  70. start_period: 30s
  71. volumes:
  72. - dolphinscheduler-logs:/opt/dolphinscheduler/logs
  73. networks:
  74. - dolphinscheduler
  75. deploy:
  76. mode: replicated
  77. replicas: 1
  78. dolphinscheduler-alert:
  79. image: apache/dolphinscheduler:latest
  80. command: alert-server
  81. ports:
  82. - 50052:50052
  83. environment:
  84. TZ: Asia/Shanghai
  85. ALERT_PLUGIN_DIR: lib/plugin/alert
  86. DATABASE_HOST: dolphinscheduler-postgresql
  87. DATABASE_PORT: 5432
  88. DATABASE_USERNAME: root
  89. DATABASE_PASSWORD: root
  90. DATABASE_DATABASE: dolphinscheduler
  91. healthcheck:
  92. test: ["CMD", "/root/checkpoint.sh", "AlertServer"]
  93. interval: 30s
  94. timeout: 5s
  95. retries: 3
  96. start_period: 30s
  97. volumes:
  98. - dolphinscheduler-logs:/opt/dolphinscheduler/logs
  99. networks:
  100. - dolphinscheduler
  101. deploy:
  102. mode: replicated
  103. replicas: 1
  104. dolphinscheduler-master:
  105. image: apache/dolphinscheduler:latest
  106. command: master-server
  107. ports:
  108. - 5678:5678
  109. environment:
  110. TZ: Asia/Shanghai
  111. MASTER_EXEC_THREADS: "100"
  112. MASTER_EXEC_TASK_NUM: "20"
  113. MASTER_HEARTBEAT_INTERVAL: "10"
  114. MASTER_TASK_COMMIT_RETRYTIMES: "5"
  115. MASTER_TASK_COMMIT_INTERVAL: "1000"
  116. MASTER_MAX_CPULOAD_AVG: "100"
  117. MASTER_RESERVED_MEMORY: "0.1"
  118. DATABASE_HOST: dolphinscheduler-postgresql
  119. DATABASE_PORT: 5432
  120. DATABASE_USERNAME: root
  121. DATABASE_PASSWORD: root
  122. DATABASE_DATABASE: dolphinscheduler
  123. ZOOKEEPER_QUORUM: dolphinscheduler-zookeeper:2181
  124. healthcheck:
  125. test: ["CMD", "/root/checkpoint.sh", "MasterServer"]
  126. interval: 30s
  127. timeout: 5s
  128. retries: 3
  129. start_period: 30s
  130. volumes:
  131. - dolphinscheduler-logs:/opt/dolphinscheduler/logs
  132. networks:
  133. - dolphinscheduler
  134. deploy:
  135. mode: replicated
  136. replicas: 1
  137. dolphinscheduler-worker:
  138. image: apache/dolphinscheduler:latest
  139. command: worker-server
  140. ports:
  141. - 1234:1234
  142. - 50051:50051
  143. environment:
  144. TZ: Asia/Shanghai
  145. WORKER_EXEC_THREADS: "100"
  146. WORKER_HEARTBEAT_INTERVAL: "10"
  147. WORKER_MAX_CPULOAD_AVG: "100"
  148. WORKER_RESERVED_MEMORY: "0.1"
  149. WORKER_GROUPS: "default"
  150. WORKER_WEIGHT: "100"
  151. HADOOP_HOME: "/opt/soft/hadoop"
  152. HADOOP_CONF_DIR: "/opt/soft/hadoop/etc/hadoop"
  153. SPARK_HOME1: "/opt/soft/spark1"
  154. SPARK_HOME2: "/opt/soft/spark2"
  155. PYTHON_HOME: "/usr/bin/python"
  156. JAVA_HOME: "/usr/lib/jvm/java-1.8-openjdk"
  157. HIVE_HOME: "/opt/soft/hive"
  158. FLINK_HOME: "/opt/soft/flink"
  159. DATAX_HOME: "/opt/soft/datax/bin/datax.py"
  160. DOLPHINSCHEDULER_DATA_BASEDIR_PATH: /tmp/dolphinscheduler
  161. ALERT_LISTEN_HOST: dolphinscheduler-alert
  162. DATABASE_HOST: dolphinscheduler-postgresql
  163. DATABASE_PORT: 5432
  164. DATABASE_USERNAME: root
  165. DATABASE_PASSWORD: root
  166. DATABASE_DATABASE: dolphinscheduler
  167. ZOOKEEPER_QUORUM: dolphinscheduler-zookeeper:2181
  168. RESOURCE_STORAGE_TYPE: HDFS
  169. RESOURCE_UPLOAD_PATH: /dolphinscheduler
  170. FS_DEFAULT_FS: file:///
  171. healthcheck:
  172. test: ["CMD", "/root/checkpoint.sh", "WorkerServer"]
  173. interval: 30s
  174. timeout: 5s
  175. retries: 3
  176. start_period: 30s
  177. volumes:
  178. - dolphinscheduler-worker-data:/tmp/dolphinscheduler
  179. - dolphinscheduler-logs:/opt/dolphinscheduler/logs
  180. networks:
  181. - dolphinscheduler
  182. deploy:
  183. mode: replicated
  184. replicas: 1
  185. networks:
  186. dolphinscheduler:
  187. driver: overlay
  188. volumes:
  189. dolphinscheduler-postgresql:
  190. dolphinscheduler-zookeeper:
  191. dolphinscheduler-worker-data:
  192. dolphinscheduler-logs: