mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-12-02 20:28:03 +08:00
3457cee960
Currently the size of our distribute package is up to 800MB, this patch is migrate python gateway server into api server The distribute package size before and after this patch is: ```sh # before 796M apache-dolphinscheduler-2.0.4-SNAPSHOT-bin.tar.gz # after 647M apache-dolphinscheduler-2.0.4-SNAPSHOT-bin.tar.gz ```
132 lines
3.6 KiB
YAML
132 lines
3.6 KiB
YAML
# Licensed to the Apache Software Foundation (ASF) under one
|
|
# or more contributor license agreements. See the NOTICE file
|
|
# distributed with this work for additional information
|
|
# regarding copyright ownership. The ASF licenses this file
|
|
# to you under the Apache License, Version 2.0 (the
|
|
# "License"); you may not use this file except in compliance
|
|
# with the License. You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
version: "3.1"
|
|
|
|
services:
|
|
dolphinscheduler-postgresql:
|
|
image: bitnami/postgresql:11.11.0
|
|
environment:
|
|
TZ: Asia/Shanghai
|
|
POSTGRESQL_USERNAME: root
|
|
POSTGRESQL_PASSWORD: root
|
|
POSTGRESQL_DATABASE: dolphinscheduler
|
|
volumes:
|
|
- dolphinscheduler-postgresql:/bitnami/postgresql
|
|
networks:
|
|
- dolphinscheduler
|
|
deploy:
|
|
mode: replicated
|
|
replicas: 1
|
|
|
|
dolphinscheduler-zookeeper:
|
|
image: bitnami/zookeeper:3.6.2
|
|
environment:
|
|
TZ: Asia/Shanghai
|
|
ALLOW_ANONYMOUS_LOGIN: "yes"
|
|
ZOO_4LW_COMMANDS_WHITELIST: srvr,ruok,wchs,cons
|
|
volumes:
|
|
- dolphinscheduler-zookeeper:/bitnami/zookeeper
|
|
networks:
|
|
- dolphinscheduler
|
|
deploy:
|
|
mode: replicated
|
|
replicas: 1
|
|
|
|
dolphinscheduler-api:
|
|
image: apache/dolphinscheduler-api
|
|
ports:
|
|
- 12345:12345
|
|
env_file: .env
|
|
healthcheck:
|
|
test: [ "CMD", "curl", "http://localhost:12345/actuator/health" ]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
volumes:
|
|
- dolphinscheduler-logs:/opt/dolphinscheduler/logs
|
|
- dolphinscheduler-shared-local:/opt/soft
|
|
- dolphinscheduler-resource-local:/dolphinscheduler
|
|
networks:
|
|
- dolphinscheduler
|
|
deploy:
|
|
mode: replicated
|
|
replicas: 1
|
|
|
|
dolphinscheduler-alert:
|
|
image: apache/dolphinscheduler-alert-server
|
|
env_file: .env
|
|
healthcheck:
|
|
test: [ "CMD", "curl", "http://localhost:50053/actuator/health" ]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
volumes:
|
|
- dolphinscheduler-logs:/opt/dolphinscheduler/logs
|
|
networks:
|
|
- dolphinscheduler
|
|
deploy:
|
|
mode: replicated
|
|
replicas: 1
|
|
|
|
dolphinscheduler-master:
|
|
image: apache/dolphinscheduler-master
|
|
env_file: .env
|
|
healthcheck:
|
|
test: [ "CMD", "curl", "http://localhost:50053/actuator/health" ]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
volumes:
|
|
- dolphinscheduler-logs:/opt/dolphinscheduler/logs
|
|
- dolphinscheduler-shared-local:/opt/soft
|
|
networks:
|
|
- dolphinscheduler
|
|
deploy:
|
|
mode: replicated
|
|
replicas: 1
|
|
|
|
dolphinscheduler-worker:
|
|
image: apache/dolphinscheduler-worker
|
|
env_file: .env
|
|
healthcheck:
|
|
test: [ "CMD", "curl", "http://localhost:50053/actuator/health" ]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
volumes:
|
|
- dolphinscheduler-worker-data:/tmp/dolphinscheduler
|
|
- dolphinscheduler-logs:/opt/dolphinscheduler/logs
|
|
- dolphinscheduler-shared-local:/opt/soft
|
|
- dolphinscheduler-resource-local:/dolphinscheduler
|
|
networks:
|
|
- dolphinscheduler
|
|
deploy:
|
|
mode: replicated
|
|
replicas: 1
|
|
|
|
networks:
|
|
dolphinscheduler:
|
|
driver: overlay
|
|
|
|
volumes:
|
|
dolphinscheduler-postgresql:
|
|
dolphinscheduler-zookeeper:
|
|
dolphinscheduler-worker-data:
|
|
dolphinscheduler-logs:
|
|
dolphinscheduler-shared-local:
|
|
dolphinscheduler-resource-local:
|