docker-stack.yml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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:2.0.0-SNAPSHOT
  47. command: api-server
  48. ports:
  49. - 12345:12345
  50. environment:
  51. TZ: Asia/Shanghai
  52. env_file: config.env.sh
  53. healthcheck:
  54. test: ["CMD", "/root/checkpoint.sh", "ApiApplicationServer"]
  55. interval: 30s
  56. timeout: 5s
  57. retries: 3
  58. volumes:
  59. - dolphinscheduler-logs:/opt/dolphinscheduler/logs
  60. - dolphinscheduler-shared-local:/opt/soft
  61. - dolphinscheduler-resource-local:/dolphinscheduler
  62. networks:
  63. - dolphinscheduler
  64. deploy:
  65. mode: replicated
  66. replicas: 1
  67. dolphinscheduler-alert:
  68. image: apache/dolphinscheduler:2.0.0-SNAPSHOT
  69. command: alert-server
  70. environment:
  71. TZ: Asia/Shanghai
  72. env_file: config.env.sh
  73. healthcheck:
  74. test: ["CMD", "/root/checkpoint.sh", "AlertServer"]
  75. interval: 30s
  76. timeout: 5s
  77. retries: 3
  78. volumes:
  79. - dolphinscheduler-logs:/opt/dolphinscheduler/logs
  80. networks:
  81. - dolphinscheduler
  82. deploy:
  83. mode: replicated
  84. replicas: 1
  85. dolphinscheduler-master:
  86. image: apache/dolphinscheduler:2.0.0-SNAPSHOT
  87. command: master-server
  88. environment:
  89. TZ: Asia/Shanghai
  90. env_file: config.env.sh
  91. healthcheck:
  92. test: ["CMD", "/root/checkpoint.sh", "MasterServer"]
  93. interval: 30s
  94. timeout: 5s
  95. retries: 3
  96. volumes:
  97. - dolphinscheduler-logs:/opt/dolphinscheduler/logs
  98. - dolphinscheduler-shared-local:/opt/soft
  99. networks:
  100. - dolphinscheduler
  101. deploy:
  102. mode: replicated
  103. replicas: 1
  104. dolphinscheduler-worker:
  105. image: apache/dolphinscheduler:2.0.0-SNAPSHOT
  106. command: worker-server
  107. environment:
  108. TZ: Asia/Shanghai
  109. env_file: config.env.sh
  110. healthcheck:
  111. test: ["CMD", "/root/checkpoint.sh", "WorkerServer"]
  112. interval: 30s
  113. timeout: 5s
  114. retries: 3
  115. volumes:
  116. - dolphinscheduler-worker-data:/tmp/dolphinscheduler
  117. - dolphinscheduler-logs:/opt/dolphinscheduler/logs
  118. - dolphinscheduler-shared-local:/opt/soft
  119. - dolphinscheduler-resource-local:/dolphinscheduler
  120. networks:
  121. - dolphinscheduler
  122. deploy:
  123. mode: replicated
  124. replicas: 1
  125. networks:
  126. dolphinscheduler:
  127. driver: overlay
  128. volumes:
  129. dolphinscheduler-postgresql:
  130. dolphinscheduler-zookeeper:
  131. dolphinscheduler-worker-data:
  132. dolphinscheduler-logs:
  133. dolphinscheduler-shared-local:
  134. dolphinscheduler-resource-local: