|
@@ -19,6 +19,9 @@ version: "3.8"
|
|
|
services:
|
|
|
dolphinscheduler-postgresql:
|
|
|
image: bitnami/postgresql:11.11.0
|
|
|
+ ports:
|
|
|
+ - "5432:5432"
|
|
|
+ profiles: ["all", "schema"]
|
|
|
environment:
|
|
|
POSTGRESQL_USERNAME: root
|
|
|
POSTGRESQL_PASSWORD: root
|
|
@@ -35,6 +38,7 @@ services:
|
|
|
|
|
|
dolphinscheduler-zookeeper:
|
|
|
image: bitnami/zookeeper:3.6.2
|
|
|
+ profiles: ["all"]
|
|
|
environment:
|
|
|
ALLOW_ANONYMOUS_LOGIN: "yes"
|
|
|
ZOO_4LW_COMMANDS_WHITELIST: srvr,ruok,wchs,cons
|
|
@@ -51,7 +55,8 @@ services:
|
|
|
dolphinscheduler-schema-initializer:
|
|
|
image: ${HUB}/dolphinscheduler-tools:${TAG}
|
|
|
env_file: .env
|
|
|
- command: [ bin/create-schema.sh ]
|
|
|
+ profiles: ["schema"]
|
|
|
+ command: [ tools/bin/upgrade-schema.sh ]
|
|
|
depends_on:
|
|
|
dolphinscheduler-postgresql:
|
|
|
condition: service_healthy
|
|
@@ -66,15 +71,14 @@ services:
|
|
|
image: ${HUB}/dolphinscheduler-api:${TAG}
|
|
|
ports:
|
|
|
- "12345:12345"
|
|
|
+ profiles: ["all"]
|
|
|
env_file: .env
|
|
|
healthcheck:
|
|
|
- test: [ "CMD", "curl", "http://localhost:12345/actuator/health" ]
|
|
|
+ test: [ "CMD", "curl", "http://localhost:12345/dolphinscheduler/actuator/health" ]
|
|
|
interval: 30s
|
|
|
timeout: 5s
|
|
|
retries: 3
|
|
|
depends_on:
|
|
|
- dolphinscheduler-schema-initializer:
|
|
|
- condition: service_completed_successfully
|
|
|
dolphinscheduler-zookeeper:
|
|
|
condition: service_healthy
|
|
|
volumes:
|
|
@@ -86,15 +90,13 @@ services:
|
|
|
|
|
|
dolphinscheduler-alert:
|
|
|
image: ${HUB}/dolphinscheduler-alert-server:${TAG}
|
|
|
+ profiles: ["all"]
|
|
|
env_file: .env
|
|
|
healthcheck:
|
|
|
test: [ "CMD", "curl", "http://localhost:50053/actuator/health" ]
|
|
|
interval: 30s
|
|
|
timeout: 5s
|
|
|
retries: 3
|
|
|
- depends_on:
|
|
|
- dolphinscheduler-schema-initializer:
|
|
|
- condition: service_completed_successfully
|
|
|
volumes:
|
|
|
- dolphinscheduler-logs:/opt/dolphinscheduler/logs
|
|
|
networks:
|
|
@@ -102,6 +104,7 @@ services:
|
|
|
|
|
|
dolphinscheduler-master:
|
|
|
image: ${HUB}/dolphinscheduler-master:${TAG}
|
|
|
+ profiles: ["all"]
|
|
|
env_file: .env
|
|
|
healthcheck:
|
|
|
test: [ "CMD", "curl", "http://localhost:5679/actuator/health" ]
|
|
@@ -109,8 +112,6 @@ services:
|
|
|
timeout: 5s
|
|
|
retries: 3
|
|
|
depends_on:
|
|
|
- dolphinscheduler-schema-initializer:
|
|
|
- condition: service_completed_successfully
|
|
|
dolphinscheduler-zookeeper:
|
|
|
condition: service_healthy
|
|
|
volumes:
|
|
@@ -121,6 +122,7 @@ services:
|
|
|
|
|
|
dolphinscheduler-worker:
|
|
|
image: ${HUB}/dolphinscheduler-worker:${TAG}
|
|
|
+ profiles: ["all"]
|
|
|
env_file: .env
|
|
|
healthcheck:
|
|
|
test: [ "CMD", "curl", "http://localhost:1235/actuator/health" ]
|
|
@@ -128,8 +130,6 @@ services:
|
|
|
timeout: 5s
|
|
|
retries: 3
|
|
|
depends_on:
|
|
|
- dolphinscheduler-schema-initializer:
|
|
|
- condition: service_completed_successfully
|
|
|
dolphinscheduler-zookeeper:
|
|
|
condition: service_healthy
|
|
|
volumes:
|