|
|
@ -9,7 +9,7 @@ or zookeeper server already exists. |
|
|
|
## Prepare |
|
|
|
## Prepare |
|
|
|
|
|
|
|
|
|
|
|
- [Docker](https://docs.docker.com/engine/install/) 1.13.1+ |
|
|
|
- [Docker](https://docs.docker.com/engine/install/) 1.13.1+ |
|
|
|
- [Docker Compose](https://docs.docker.com/compose/) 1.11.0+ |
|
|
|
- [Docker Compose](https://docs.docker.com/compose/) 1.28.0+ |
|
|
|
|
|
|
|
|
|
|
|
## Start Server |
|
|
|
## Start Server |
|
|
|
|
|
|
|
|
|
|
@ -54,9 +54,13 @@ $ tar -zxf apache-dolphinscheduler-"${DOLPHINSCHEDULER_VERSION}"-src.tar.gz |
|
|
|
# Going to docker-compose's location |
|
|
|
# Going to docker-compose's location |
|
|
|
# For Mac or Linux users |
|
|
|
# For Mac or Linux users |
|
|
|
$ cd apache-dolphinscheduler-"${DOLPHINSCHEDULER_VERSION}"-src/deploy/docker |
|
|
|
$ cd apache-dolphinscheduler-"${DOLPHINSCHEDULER_VERSION}"-src/deploy/docker |
|
|
|
# For Windows users |
|
|
|
# For Windows users, you should run command `cd apache-dolphinscheduler-"${DOLPHINSCHEDULER_VERSION}"-src\deploy\docker` |
|
|
|
$ cd apache-dolphinscheduler-"${DOLPHINSCHEDULER_VERSION}"-src\deploy\docker |
|
|
|
|
|
|
|
$ docker-compose up -d |
|
|
|
# Initialize the database, use profile schema |
|
|
|
|
|
|
|
$ docker-compose --profile schema up -d |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# start all dolphinscheduler server, use profile all |
|
|
|
|
|
|
|
$ docker-compose --profile all up -d |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
> NOTES: It will not only start DolphinScheduler servers but also some others necessary services like PostgreSQL(with `root` |
|
|
|
> NOTES: It will not only start DolphinScheduler servers but also some others necessary services like PostgreSQL(with `root` |
|
|
@ -78,6 +82,7 @@ $ docker run -d --name dolphinscheduler-tools \ |
|
|
|
-e SPRING_DATASOURCE_URL="jdbc:postgresql://localhost:5432/<DATABASE>" \ |
|
|
|
-e SPRING_DATASOURCE_URL="jdbc:postgresql://localhost:5432/<DATABASE>" \ |
|
|
|
-e SPRING_DATASOURCE_USERNAME="<USER>" \ |
|
|
|
-e SPRING_DATASOURCE_USERNAME="<USER>" \ |
|
|
|
-e SPRING_DATASOURCE_PASSWORD="<PASSWORD>" \ |
|
|
|
-e SPRING_DATASOURCE_PASSWORD="<PASSWORD>" \ |
|
|
|
|
|
|
|
--net host \ |
|
|
|
apache/dolphinscheduler-tools:"${DOLPHINSCHEDULER_VERSION}" bin/create-schema.sh |
|
|
|
apache/dolphinscheduler-tools:"${DOLPHINSCHEDULER_VERSION}" bin/create-schema.sh |
|
|
|
# Starting DolphinScheduler service |
|
|
|
# Starting DolphinScheduler service |
|
|
|
$ docker run -d --name dolphinscheduler-master \ |
|
|
|
$ docker run -d --name dolphinscheduler-master \ |
|
|
@ -87,6 +92,7 @@ $ docker run -d --name dolphinscheduler-master \ |
|
|
|
-e SPRING_DATASOURCE_USERNAME="<USER>" \ |
|
|
|
-e SPRING_DATASOURCE_USERNAME="<USER>" \ |
|
|
|
-e SPRING_DATASOURCE_PASSWORD="<PASSWORD>" \ |
|
|
|
-e SPRING_DATASOURCE_PASSWORD="<PASSWORD>" \ |
|
|
|
-e REGISTRY_ZOOKEEPER_CONNECT_STRING="localhost:2181" \ |
|
|
|
-e REGISTRY_ZOOKEEPER_CONNECT_STRING="localhost:2181" \ |
|
|
|
|
|
|
|
--net host \ |
|
|
|
-d apache/dolphinscheduler-master:"${DOLPHINSCHEDULER_VERSION}" |
|
|
|
-d apache/dolphinscheduler-master:"${DOLPHINSCHEDULER_VERSION}" |
|
|
|
$ docker run -d --name dolphinscheduler-worker \ |
|
|
|
$ docker run -d --name dolphinscheduler-worker \ |
|
|
|
-e DATABASE="postgresql" \ |
|
|
|
-e DATABASE="postgresql" \ |
|
|
@ -95,6 +101,7 @@ $ docker run -d --name dolphinscheduler-worker \ |
|
|
|
-e SPRING_DATASOURCE_USERNAME="<USER>" \ |
|
|
|
-e SPRING_DATASOURCE_USERNAME="<USER>" \ |
|
|
|
-e SPRING_DATASOURCE_PASSWORD="<PASSWORD>" \ |
|
|
|
-e SPRING_DATASOURCE_PASSWORD="<PASSWORD>" \ |
|
|
|
-e REGISTRY_ZOOKEEPER_CONNECT_STRING="localhost:2181" \ |
|
|
|
-e REGISTRY_ZOOKEEPER_CONNECT_STRING="localhost:2181" \ |
|
|
|
|
|
|
|
--net host \ |
|
|
|
-d apache/dolphinscheduler-worker:"${DOLPHINSCHEDULER_VERSION}" |
|
|
|
-d apache/dolphinscheduler-worker:"${DOLPHINSCHEDULER_VERSION}" |
|
|
|
$ docker run -d --name dolphinscheduler-api \ |
|
|
|
$ docker run -d --name dolphinscheduler-api \ |
|
|
|
-e DATABASE="postgresql" \ |
|
|
|
-e DATABASE="postgresql" \ |
|
|
@ -103,6 +110,7 @@ $ docker run -d --name dolphinscheduler-api \ |
|
|
|
-e SPRING_DATASOURCE_USERNAME="<USER>" \ |
|
|
|
-e SPRING_DATASOURCE_USERNAME="<USER>" \ |
|
|
|
-e SPRING_DATASOURCE_PASSWORD="<PASSWORD>" \ |
|
|
|
-e SPRING_DATASOURCE_PASSWORD="<PASSWORD>" \ |
|
|
|
-e REGISTRY_ZOOKEEPER_CONNECT_STRING="localhost:2181" \ |
|
|
|
-e REGISTRY_ZOOKEEPER_CONNECT_STRING="localhost:2181" \ |
|
|
|
|
|
|
|
--net host \ |
|
|
|
-d apache/dolphinscheduler-api:"${DOLPHINSCHEDULER_VERSION}" |
|
|
|
-d apache/dolphinscheduler-api:"${DOLPHINSCHEDULER_VERSION}" |
|
|
|
$ docker run -d --name dolphinscheduler-alert-server \ |
|
|
|
$ docker run -d --name dolphinscheduler-alert-server \ |
|
|
|
-e DATABASE="postgresql" \ |
|
|
|
-e DATABASE="postgresql" \ |
|
|
@ -111,6 +119,7 @@ $ docker run -d --name dolphinscheduler-alert-server \ |
|
|
|
-e SPRING_DATASOURCE_USERNAME="<USER>" \ |
|
|
|
-e SPRING_DATASOURCE_USERNAME="<USER>" \ |
|
|
|
-e SPRING_DATASOURCE_PASSWORD="<PASSWORD>" \ |
|
|
|
-e SPRING_DATASOURCE_PASSWORD="<PASSWORD>" \ |
|
|
|
-e REGISTRY_ZOOKEEPER_CONNECT_STRING="localhost:2181" \ |
|
|
|
-e REGISTRY_ZOOKEEPER_CONNECT_STRING="localhost:2181" \ |
|
|
|
|
|
|
|
--net host \ |
|
|
|
-d apache/dolphinscheduler-alert-server:"${DOLPHINSCHEDULER_VERSION}" |
|
|
|
-d apache/dolphinscheduler-alert-server:"${DOLPHINSCHEDULER_VERSION}" |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|