docker-stack.yml 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  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. volumes:
  42. - dolphinscheduler-zookeeper:/bitnami/zookeeper
  43. networks:
  44. - dolphinscheduler
  45. deploy:
  46. mode: replicated
  47. replicas: 1
  48. dolphinscheduler-api:
  49. image: registry.cn-qingdao.aliyuncs.com/sxyj/dolphinscheduler:dev
  50. command: ["api-server"]
  51. ports:
  52. - 12345:12345
  53. environment:
  54. TZ: Asia/Shanghai
  55. POSTGRESQL_HOST: dolphinscheduler-postgresql
  56. POSTGRESQL_PORT: 5432
  57. POSTGRESQL_USERNAME: root
  58. POSTGRESQL_PASSWORD: root
  59. POSTGRESQL_DATABASE: dolphinscheduler
  60. ZOOKEEPER_QUORUM: dolphinscheduler-zookeeper:2181
  61. healthcheck:
  62. test: ["CMD", "/root/checkpoint.sh", "ApiApplicationServer"]
  63. interval: 30
  64. timeout: 5s
  65. retries: 3
  66. start_period: 30s
  67. volumes:
  68. - dolphinscheduler-api:/opt/dolphinscheduler/logs
  69. networks:
  70. - dolphinscheduler
  71. deploy:
  72. mode: replicated
  73. replicas: 1
  74. dolphinscheduler-frontend:
  75. image: registry.cn-qingdao.aliyuncs.com/sxyj/dolphinscheduler:dev
  76. command: ["frontend"]
  77. ports:
  78. - 8888:8888
  79. environment:
  80. TZ: Asia/Shanghai
  81. FRONTEND_API_SERVER_HOST: dolphinscheduler-api
  82. FRONTEND_API_SERVER_PORT: 12345
  83. healthcheck:
  84. test: ["CMD", "nc", "-z", "localhost", "8888"]
  85. interval: 30
  86. timeout: 5s
  87. retries: 3
  88. start_period: 30s
  89. volumes:
  90. - dolphinscheduler-frontend:/var/log/nginx
  91. networks:
  92. - dolphinscheduler
  93. deploy:
  94. mode: replicated
  95. replicas: 1
  96. dolphinscheduler-alert:
  97. image: registry.cn-qingdao.aliyuncs.com/sxyj/dolphinscheduler:dev
  98. command: ["alert-server"]
  99. environment:
  100. TZ: Asia/Shanghai
  101. XLS_FILE_PATH: "/tmp/xls"
  102. MAIL_SERVER_HOST: ""
  103. MAIL_SERVER_PORT: ""
  104. MAIL_SENDER: ""
  105. MAIL_USER: ""
  106. MAIL_PASSWD: ""
  107. MAIL_SMTP_STARTTLS_ENABLE: "false"
  108. MAIL_SMTP_SSL_ENABLE: "false"
  109. MAIL_SMTP_SSL_TRUST: ""
  110. ENTERPRISE_WECHAT_ENABLE: "false"
  111. ENTERPRISE_WECHAT_CORP_ID: ""
  112. ENTERPRISE_WECHAT_SECRET: ""
  113. ENTERPRISE_WECHAT_AGENT_ID: ""
  114. ENTERPRISE_WECHAT_USERS: ""
  115. POSTGRESQL_HOST: dolphinscheduler-postgresql
  116. POSTGRESQL_PORT: 5432
  117. POSTGRESQL_USERNAME: root
  118. POSTGRESQL_PASSWORD: root
  119. POSTGRESQL_DATABASE: dolphinscheduler
  120. healthcheck:
  121. test: ["CMD", "/root/checkpoint.sh", "AlertServer"]
  122. interval: 30
  123. timeout: 5s
  124. retries: 3
  125. start_period: 30s
  126. volumes:
  127. - dolphinscheduler-alert:/opt/dolphinscheduler/logs
  128. networks:
  129. - dolphinscheduler
  130. deploy:
  131. mode: replicated
  132. replicas: 1
  133. dolphinscheduler-master:
  134. image: registry.cn-qingdao.aliyuncs.com/sxyj/dolphinscheduler:dev
  135. command: ["master-server"]
  136. ports:
  137. - 5678:5678
  138. environment:
  139. TZ: Asia/Shanghai
  140. MASTER_EXEC_THREADS: "100"
  141. MASTER_EXEC_TASK_NUM: "20"
  142. MASTER_HEARTBEAT_INTERVAL: "10"
  143. MASTER_TASK_COMMIT_RETRYTIMES: "5"
  144. MASTER_TASK_COMMIT_INTERVAL: "1000"
  145. MASTER_MAX_CPULOAD_AVG: "100"
  146. MASTER_RESERVED_MEMORY: "0.1"
  147. POSTGRESQL_HOST: dolphinscheduler-postgresql
  148. POSTGRESQL_PORT: 5432
  149. POSTGRESQL_USERNAME: root
  150. POSTGRESQL_PASSWORD: root
  151. POSTGRESQL_DATABASE: dolphinscheduler
  152. ZOOKEEPER_QUORUM: dolphinscheduler-zookeeper:2181
  153. healthcheck:
  154. test: ["CMD", "/root/checkpoint.sh", "MasterServer"]
  155. interval: 30
  156. timeout: 5s
  157. retries: 3
  158. start_period: 30s
  159. volumes:
  160. - dolphinscheduler-master:/opt/dolphinscheduler/logs
  161. networks:
  162. - dolphinscheduler
  163. deploy:
  164. mode: replicated
  165. replicas: 1
  166. dolphinscheduler-worker:
  167. image: registry.cn-qingdao.aliyuncs.com/sxyj/dolphinscheduler:dev
  168. command: ["worker-server"]
  169. ports:
  170. - 1234:1234
  171. - 50051:50051
  172. environment:
  173. TZ: Asia/Shanghai
  174. WORKER_EXEC_THREADS: "100"
  175. WORKER_HEARTBEAT_INTERVAL: "10"
  176. WORKER_FETCH_TASK_NUM: "3"
  177. WORKER_MAX_CPULOAD_AVG: "100"
  178. WORKER_RESERVED_MEMORY: "0.1"
  179. WORKER_GROUP: "default"
  180. DOLPHINSCHEDULER_DATA_BASEDIR_PATH: "/tmp/dolphinscheduler"
  181. POSTGRESQL_HOST: dolphinscheduler-postgresql
  182. POSTGRESQL_PORT: 5432
  183. POSTGRESQL_USERNAME: root
  184. POSTGRESQL_PASSWORD: root
  185. POSTGRESQL_DATABASE: dolphinscheduler
  186. ZOOKEEPER_QUORUM: dolphinscheduler-zookeeper:2181
  187. healthcheck:
  188. test: ["CMD", "/root/checkpoint.sh", "WorkerServer"]
  189. interval: 30
  190. timeout: 5s
  191. retries: 3
  192. start_period: 30s
  193. volumes:
  194. - dolphinscheduler-worker-data:/tmp/dolphinscheduler
  195. - dolphinscheduler-worker-logs:/opt/dolphinscheduler/logs
  196. configs:
  197. - source: dolphinscheduler-worker-task-env
  198. target: /opt/dolphinscheduler/conf/env/dolphinscheduler_env.sh
  199. networks:
  200. - dolphinscheduler
  201. deploy:
  202. mode: replicated
  203. replicas: 1
  204. networks:
  205. dolphinscheduler:
  206. driver: overlay
  207. volumes:
  208. dolphinscheduler-postgresql:
  209. dolphinscheduler-zookeeper:
  210. dolphinscheduler-api:
  211. dolphinscheduler-frontend:
  212. dolphinscheduler-alert:
  213. dolphinscheduler-master:
  214. dolphinscheduler-worker-data:
  215. dolphinscheduler-worker-logs:
  216. configs:
  217. dolphinscheduler-worker-task-env:
  218. file: ./dolphinscheduler_env.sh