docker-compose.yml 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  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. container_name: dolphinscheduler-postgresql
  21. ports:
  22. - 5432:5432
  23. environment:
  24. TZ: Asia/Shanghai
  25. POSTGRESQL_USERNAME: root
  26. POSTGRESQL_PASSWORD: root
  27. POSTGRESQL_DATABASE: dolphinscheduler
  28. volumes:
  29. - dolphinscheduler-postgresql:/bitnami/postgresql
  30. - dolphinscheduler-postgresql-initdb:/docker-entrypoint-initdb.d
  31. restart: unless-stopped
  32. networks:
  33. - dolphinscheduler
  34. dolphinscheduler-zookeeper:
  35. image: bitnami/zookeeper:latest
  36. container_name: dolphinscheduler-zookeeper
  37. ports:
  38. - 2181:2181
  39. environment:
  40. TZ: Asia/Shanghai
  41. ALLOW_ANONYMOUS_LOGIN: "yes"
  42. ZOO_4LW_COMMANDS_WHITELIST: srvr,ruok,wchs,cons
  43. volumes:
  44. - dolphinscheduler-zookeeper:/bitnami/zookeeper
  45. restart: unless-stopped
  46. networks:
  47. - dolphinscheduler
  48. dolphinscheduler-api:
  49. image: apache/dolphinscheduler:latest
  50. container_name: dolphinscheduler-api
  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. depends_on:
  72. - dolphinscheduler-postgresql
  73. - dolphinscheduler-zookeeper
  74. volumes:
  75. - dolphinscheduler-logs:/opt/dolphinscheduler/logs
  76. - dolphinscheduler-resource-local:/dolphinscheduler
  77. restart: unless-stopped
  78. networks:
  79. - dolphinscheduler
  80. dolphinscheduler-alert:
  81. image: apache/dolphinscheduler:latest
  82. container_name: dolphinscheduler-alert
  83. command: alert-server
  84. environment:
  85. TZ: Asia/Shanghai
  86. XLS_FILE_PATH: "/tmp/xls"
  87. MAIL_SERVER_HOST: ""
  88. MAIL_SERVER_PORT: ""
  89. MAIL_SENDER: ""
  90. MAIL_USER: ""
  91. MAIL_PASSWD: ""
  92. MAIL_SMTP_STARTTLS_ENABLE: "false"
  93. MAIL_SMTP_SSL_ENABLE: "false"
  94. MAIL_SMTP_SSL_TRUST: ""
  95. ENTERPRISE_WECHAT_ENABLE: "false"
  96. ENTERPRISE_WECHAT_CORP_ID: ""
  97. ENTERPRISE_WECHAT_SECRET: ""
  98. ENTERPRISE_WECHAT_AGENT_ID: ""
  99. ENTERPRISE_WECHAT_USERS: ""
  100. DATABASE_HOST: dolphinscheduler-postgresql
  101. DATABASE_PORT: 5432
  102. DATABASE_USERNAME: root
  103. DATABASE_PASSWORD: root
  104. DATABASE_DATABASE: dolphinscheduler
  105. healthcheck:
  106. test: ["CMD", "/root/checkpoint.sh", "AlertServer"]
  107. interval: 30s
  108. timeout: 5s
  109. retries: 3
  110. start_period: 30s
  111. depends_on:
  112. - dolphinscheduler-postgresql
  113. volumes:
  114. - dolphinscheduler-logs:/opt/dolphinscheduler/logs
  115. restart: unless-stopped
  116. networks:
  117. - dolphinscheduler
  118. dolphinscheduler-master:
  119. image: apache/dolphinscheduler:latest
  120. container_name: dolphinscheduler-master
  121. command: master-server
  122. ports:
  123. - 5678:5678
  124. environment:
  125. TZ: Asia/Shanghai
  126. MASTER_EXEC_THREADS: "100"
  127. MASTER_EXEC_TASK_NUM: "20"
  128. MASTER_HEARTBEAT_INTERVAL: "10"
  129. MASTER_TASK_COMMIT_RETRYTIMES: "5"
  130. MASTER_TASK_COMMIT_INTERVAL: "1000"
  131. MASTER_MAX_CPULOAD_AVG: "100"
  132. MASTER_RESERVED_MEMORY: "0.1"
  133. DATABASE_HOST: dolphinscheduler-postgresql
  134. DATABASE_PORT: 5432
  135. DATABASE_USERNAME: root
  136. DATABASE_PASSWORD: root
  137. DATABASE_DATABASE: dolphinscheduler
  138. ZOOKEEPER_QUORUM: dolphinscheduler-zookeeper:2181
  139. healthcheck:
  140. test: ["CMD", "/root/checkpoint.sh", "MasterServer"]
  141. interval: 30s
  142. timeout: 5s
  143. retries: 3
  144. start_period: 30s
  145. depends_on:
  146. - dolphinscheduler-postgresql
  147. - dolphinscheduler-zookeeper
  148. volumes:
  149. - dolphinscheduler-logs:/opt/dolphinscheduler/logs
  150. restart: unless-stopped
  151. networks:
  152. - dolphinscheduler
  153. dolphinscheduler-worker:
  154. image: apache/dolphinscheduler:latest
  155. container_name: dolphinscheduler-worker
  156. command: worker-server
  157. ports:
  158. - 1234:1234
  159. - 50051:50051
  160. environment:
  161. TZ: Asia/Shanghai
  162. WORKER_EXEC_THREADS: "100"
  163. WORKER_HEARTBEAT_INTERVAL: "10"
  164. WORKER_FETCH_TASK_NUM: "3"
  165. WORKER_MAX_CPULOAD_AVG: "100"
  166. WORKER_RESERVED_MEMORY: "0.1"
  167. WORKER_GROUP: "default"
  168. WORKER_WEIGHT: "100"
  169. DOLPHINSCHEDULER_DATA_BASEDIR_PATH: /tmp/dolphinscheduler
  170. XLS_FILE_PATH: "/tmp/xls"
  171. MAIL_SERVER_HOST: ""
  172. MAIL_SERVER_PORT: ""
  173. MAIL_SENDER: ""
  174. MAIL_USER: ""
  175. MAIL_PASSWD: ""
  176. MAIL_SMTP_STARTTLS_ENABLE: "false"
  177. MAIL_SMTP_SSL_ENABLE: "false"
  178. MAIL_SMTP_SSL_TRUST: ""
  179. DATABASE_HOST: dolphinscheduler-postgresql
  180. DATABASE_PORT: 5432
  181. DATABASE_USERNAME: root
  182. DATABASE_PASSWORD: root
  183. DATABASE_DATABASE: dolphinscheduler
  184. ZOOKEEPER_QUORUM: dolphinscheduler-zookeeper:2181
  185. RESOURCE_STORAGE_TYPE: HDFS
  186. RESOURCE_UPLOAD_PATH: /dolphinscheduler
  187. FS_DEFAULT_FS: file:///
  188. healthcheck:
  189. test: ["CMD", "/root/checkpoint.sh", "WorkerServer"]
  190. interval: 30s
  191. timeout: 5s
  192. retries: 3
  193. start_period: 30s
  194. depends_on:
  195. - dolphinscheduler-postgresql
  196. - dolphinscheduler-zookeeper
  197. volumes:
  198. - ./dolphinscheduler_env.sh:/opt/dolphinscheduler/conf/env/dolphinscheduler_env.sh
  199. - dolphinscheduler-worker-data:/tmp/dolphinscheduler
  200. - dolphinscheduler-logs:/opt/dolphinscheduler/logs
  201. - dolphinscheduler-resource-local:/dolphinscheduler
  202. restart: unless-stopped
  203. networks:
  204. - dolphinscheduler
  205. networks:
  206. dolphinscheduler:
  207. driver: bridge
  208. volumes:
  209. dolphinscheduler-postgresql:
  210. dolphinscheduler-postgresql-initdb:
  211. dolphinscheduler-zookeeper:
  212. dolphinscheduler-worker-data:
  213. dolphinscheduler-logs:
  214. dolphinscheduler-resource-local: