4ss3g4f commented on issue #5414:
URL:
https://github.com/apache/dolphinscheduler/issues/5414#issuecomment-830649465
here is the compose yaml file:
```
version: '3.7'
networks:
bridge:
external: true
services:
dolphinscheduler-api:
image: apache/dolphinscheduler:1.3.5
command: api-server
ports:
- 12345:12345
environment:
TZ: Asia/Jakarta
DOLPHINSCHEDULER_OPTS: "-Xms512m -Xmx512m -Xmn256m"
DATABASE_TYPE: postgresql
DATABASE_DRIVER: org.postgresql.Driver
DATABASE_HOST: 10.100.234.124
DATABASE_PORT: 5432
DATABASE_USERNAME: postgres
DATABASE_PASSWORD: QiLw{vZlFy7GEs3cVch-+5oU
DATABASE_DATABASE: dolphinscheduler
DATABASE_PARAMS: characterEncoding=utf8
ZOOKEEPER_QUORUM: 10.100.151.100:2181
RESOURCE_STORAGE_TYPE: HDFS
RESOURCE_UPLOAD_PATH: /dolphinscheduler
FS_DEFAULT_FS: file:///
healthcheck:
test: ["CMD", "/root/checkpoint.sh", "ApiApplicationServer"]
interval: 30s
timeout: 5s
retries: 3
volumes:
-
/home/core/dolphinscheduler/dolphinscheduler-logs:/opt/dolphinscheduler/logs
networks:
- bridge
deploy:
mode: replicated
replicas: 1
dolphinscheduler-alert:
image: apache/dolphinscheduler:1.3.5
command: alert-server
ports:
- 50052:50052
environment:
TZ: Asia/Jakarta
ALERT_PLUGIN_DIR: lib/plugin/alert
DOLPHINSCHEDULER_OPTS: "-Xms512m -Xmx512m -Xmn256m"
DATABASE_TYPE: postgresql
DATABASE_DRIVER: org.postgresql.Driver
DATABASE_HOST: 10.100.234.124
DATABASE_PORT: 5432
DATABASE_USERNAME: postgres
DATABASE_PASSWORD: QiLw{vZlFy7GEs3cVch-+5oU
DATABASE_DATABASE: dolphinscheduler
DATABASE_PARAMS: characterEncoding=utf8
healthcheck:
test: ["CMD", "/root/checkpoint.sh", "AlertServer"]
interval: 30s
timeout: 5s
retries: 3
volumes:
-
/home/core/dolphinscheduler/dolphinscheduler-logs:/opt/dolphinscheduler/logs
networks:
- bridge
deploy:
mode: replicated
replicas: 1
dolphinscheduler-master:
image: apache/dolphinscheduler:1.3.5
command: master-server
ports:
- 5678:5678
environment:
TZ: Asia/Jakarta
MASTER_EXEC_THREADS: "100"
MASTER_EXEC_TASK_NUM: "20"
MASTER_HEARTBEAT_INTERVAL: "10"
MASTER_TASK_COMMIT_RETRYTIMES: "5"
MASTER_TASK_COMMIT_INTERVAL: "1000"
MASTER_MAX_CPULOAD_AVG: "100"
MASTER_RESERVED_MEMORY: "0.1"
DOLPHINSCHEDULER_DATA_BASEDIR_PATH: /tmp/dolphinscheduler
DOLPHINSCHEDULER_OPTS: "-Xms1g -Xmx1g -Xmn512m"
DATABASE_TYPE: postgresql
DATABASE_DRIVER: org.postgresql.Driver
DATABASE_HOST: 10.100.234.124
DATABASE_PORT: 5432
DATABASE_USERNAME: postgres
DATABASE_PASSWORD: QiLw{vZlFy7GEs3cVch-+5oU
DATABASE_DATABASE: dolphinscheduler
DATABASE_PARAMS: characterEncoding=utf8
ZOOKEEPER_QUORUM: 10.100.151.100:2181
healthcheck:
test: ["CMD", "/root/checkpoint.sh", "MasterServer"]
interval: 30s
timeout: 5s
retries: 3
volumes:
-
/home/core/dolphinscheduler/dolphinscheduler-logs:/opt/dolphinscheduler/logs
networks:
- bridge
deploy:
mode: replicated
replicas: 1
dolphinscheduler-worker:
image: apache/dolphinscheduler:1.3.5
command: worker-server
ports:
- 1234:1234
- 50051:50051
environment:
TZ: Asia/Jakarta
WORKER_EXEC_THREADS: "100"
WORKER_HEARTBEAT_INTERVAL: "10"
WORKER_MAX_CPULOAD_AVG: "100"
WORKER_RESERVED_MEMORY: "0.1"
WORKER_GROUPS: "default"
WORKER_HOST_WEIGHT: "100"
ALERT_LISTEN_HOST: dolphinscheduler-alert
HADOOP_HOME: "/opt/soft/hadoop"
HADOOP_CONF_DIR: "/opt/soft/hadoop/etc/hadoop"
SPARK_HOME1: "/opt/soft/spark1"
SPARK_HOME2: "/opt/soft/spark2"
#PYTHON_HOME: "/opt/soft/python"
JAVA_HOME: "/usr/local/openjdk-8"
HIVE_HOME: "/opt/soft/hive"
FLINK_HOME: "/opt/soft/flink"
DATAX_HOME: "/opt/soft/datax"
DOLPHINSCHEDULER_DATA_BASEDIR_PATH: /tmp/dolphinscheduler
DOLPHINSCHEDULER_OPTS: "-Xms1g -Xmx1g -Xmn512m"
DATABASE_TYPE: postgresql
DATABASE_DRIVER: org.postgresql.Driver
DATABASE_HOST: 10.100.234.124
DATABASE_PORT: 5432
DATABASE_USERNAME: postgres
DATABASE_PASSWORD: QiLw{vZlFy7GEs3cVch-+5oU
DATABASE_DATABASE: dolphinscheduler
DATABASE_PARAMS: characterEncoding=utf8
ZOOKEEPER_QUORUM: 10.100.151.100:2181
RESOURCE_STORAGE_TYPE: HDFS
RESOURCE_UPLOAD_PATH: /dolphinscheduler
FS_DEFAULT_FS: file:///
healthcheck:
test: ["CMD", "/root/checkpoint.sh", "WorkerServer"]
interval: 30s
timeout: 5s
retries: 3
volumes:
-
/home/core/dolphinscheduler/dolphinscheduler-worker-data:/tmp/dolphinscheduler
-
/home/core/dolphinscheduler/dolphinscheduler-logs:/opt/dolphinscheduler/logs
networks:
- bridge
deploy:
mode: replicated
replicas: 1
```
dolphinscheduler-alert:
```
init env variables
generate app config
test postgresql service
nnect postgresql service
psql: ERROR: no such user
```
dolphinscheduler-api logs:
```
init env variables
generate app config
connect remote zookeeper
test postgresql service
nnect postgresql service
psql: ERROR: no such user
```
dolphinscheduler-master logs:
```
init env variables
generate app config
connect remote zookeeper
test postgresql service
nnect postgresql service
psql: ERROR: no such user
```
dolphinscheduler-worker logs:
```
init env variables
generate app config
connect remote zookeeper
test postgresql service
nnect postgresql service
psql: ERROR: no such user
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]