-
Notifications
You must be signed in to change notification settings - Fork 127
Expand file tree
/
Copy pathdocker-compose-dolphinscheduler.yml
More file actions
169 lines (161 loc) · 5.17 KB
/
Copy pathdocker-compose-dolphinscheduler.yml
File metadata and controls
169 lines (161 loc) · 5.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
# Copyright © 2025-present Jiangsu Qiantong Technology Co., Ltd.
#
# This file is part of qData Data Middle Platform (Open Source Edition).
#
# qData is licensed under Apache License 2.0 with additional qData terms.
# You may use qData for commercial purposes, but you may not remove, hide,
# modify, or replace the qData logo, copyright notices, license notices,
# or attribution information without a separate commercial license.
#
# White-label use, OEM distribution, rebranding, or presenting qData as
# another product requires separate commercial authorization from
# Jiangsu Qiantong Technology Co., Ltd.
#
# Business License: https://community.qdata.tech/business/policy.html
# See the LICENSE file in the project root for full license information.
version: "3.8"
services:
dolphinscheduler-postgresql:
image: ${DS_HUB}/postgresql:15.2.0
ports:
- "5432:5432"
profiles: ["all", "local", "dsdb" ]
environment:
POSTGRESQL_USERNAME: ${SPRING_DATASOURCE_USERNAME}
POSTGRESQL_PASSWORD: ${SPRING_DATASOURCE_PASSWORD}
POSTGRESQL_DATABASE: ${POSTGRESQL_DATABASE}
volumes:
# - dolphinscheduler-postgresql:/bitnami/postgresql
- ./dolphinscheduler/sql/dolphinscheduler_dump.sql:/docker-entrypoint-initdb.d/01_dolphinscheduler.sql:ro
healthcheck:
test: ["CMD", "bash", "-c", "cat < /dev/null > /dev/tcp/127.0.0.1/5432"]
interval: 5s
timeout: 60s
retries: 120
networks:
- qdatanet
extra_hosts:
- "host.docker.internal:host-gateway"
dolphinscheduler-zookeeper:
image: ${DS_HUB}/zookeeper:3.7.1
profiles: ["all", "local" ]
environment:
ALLOW_ANONYMOUS_LOGIN: "yes"
ZOO_4LW_COMMANDS_WHITELIST: srvr,ruok,wchs,cons
ZOO_LOG_LEVEL: ERROR
volumes:
- dolphinscheduler-zookeeper:/bitnami/zookeeper
healthcheck:
test: ["CMD", "bash", "-c", "cat < /dev/null > /dev/tcp/127.0.0.1/2181"]
interval: 5s
timeout: 60s
retries: 120
networks:
- qdatanet
extra_hosts:
- "host.docker.internal:host-gateway"
# dolphinscheduler-schema-initializer:
# image: ${DS_HUB}/dolphinscheduler-tools:${DS_TAG}
# env_file: .env
# profiles: ["schema"]
# command: [ tools/bin/upgrade-schema.sh ]
# depends_on:
# dolphinscheduler-postgresql:
# condition: service_healthy
# volumes:
# - ./dolphinscheduler/logs:/opt/dolphinscheduler/logs
# - ./dolphinscheduler/soft:/opt/soft
# - ./dolphinscheduler/resource:/dolphinscheduler
# networks:
# - qdatanet
# extra_hosts:
# - "host.docker.internal:host-gateway"
dolphinscheduler-api:
image: ${DS_HUB}/dolphinscheduler-api:${DS_TAG}
ports:
- "12345:12345"
- "25333:25333"
profiles: ["all", "local" ]
env_file: .env
healthcheck:
test: [ "CMD", "curl", "http://localhost:12345/dolphinscheduler/actuator/health" ]
interval: 30s
timeout: 5s
retries: 3
depends_on:
dolphinscheduler-zookeeper:
condition: service_healthy
rabbitmq:
condition: service_healthy
volumes:
- ./dolphinscheduler/logs:/opt/dolphinscheduler/logs
- ./dolphinscheduler/soft:/opt/soft
- ./dolphinscheduler/resource:/dolphinscheduler
networks:
- qdatanet
extra_hosts:
- "host.docker.internal:host-gateway"
dolphinscheduler-alert:
image: ${DS_HUB}/dolphinscheduler-alert-server:${DS_TAG}
profiles: ["all", "local" ]
env_file: .env
healthcheck:
test: [ "CMD", "curl", "http://localhost:50053/actuator/health" ]
interval: 30s
timeout: 5s
retries: 3
depends_on:
dolphinscheduler-zookeeper:
condition: service_healthy
rabbitmq:
condition: service_healthy
volumes:
- ./dolphinscheduler/logs:/opt/dolphinscheduler/logs
networks:
- qdatanet
extra_hosts:
- "host.docker.internal:host-gateway"
dolphinscheduler-master:
image: ${DS_HUB}/dolphinscheduler-master:${DS_TAG}
profiles: ["all", "local" ]
env_file: .env
healthcheck:
test: [ "CMD", "curl", "http://localhost:5679/actuator/health" ]
interval: 30s
timeout: 5s
retries: 3
depends_on:
dolphinscheduler-zookeeper:
condition: service_healthy
rabbitmq:
condition: service_healthy
volumes:
- ./dolphinscheduler/logs:/opt/dolphinscheduler/logs
- ./dolphinscheduler/soft:/opt/soft
networks:
- qdatanet
extra_hosts:
- "host.docker.internal:host-gateway"
dolphinscheduler-worker:
image: ${DS_HUB}/dolphinscheduler-worker:${DS_TAG}
profiles: ["all", "local" ]
env_file: .env
healthcheck:
test: [ "CMD", "curl", "http://localhost:1235/actuator/health" ]
interval: 30s
timeout: 5s
retries: 3
depends_on:
dolphinscheduler-zookeeper:
condition: service_healthy
rabbitmq:
condition: service_healthy
volumes:
- dolphinscheduler-worker-data:/tmp/dolphinscheduler
- ./dolphinscheduler/logs:/opt/dolphinscheduler/logs
- ./dolphinscheduler/soft:/opt/soft
- ./dolphinscheduler/resource:/dolphinscheduler
networks:
- qdatanet
extra_hosts:
- "host.docker.internal:host-gateway"