完善部署脚本
This commit is contained in:
parent
669d62b6a5
commit
235af62d43
@ -1,5 +1,5 @@
|
||||
# 服务器配置
|
||||
SERVER_IP=47.110.53.196
|
||||
SERVER_IP=192.168.111.174
|
||||
|
||||
# Pulsar配置
|
||||
PULSAR_BROKER_PORT=9093
|
||||
|
||||
@ -127,6 +127,12 @@ services:
|
||||
volumes:
|
||||
- pulsar-broker-data:/pulsar/data
|
||||
- ./pulsar/auth:/pulsar/auth
|
||||
healthcheck:
|
||||
test: ["CMD", "bin/pulsar-admin", "--admin-url", "http://localhost:${PULSAR_ADMIN_PORT}", "--auth-plugin", "org.apache.pulsar.client.impl.auth.AuthenticationBasic", "--auth-params", '{"userId":"${PULSAR_ADMIN_USER}","password":"${PULSAR_ADMIN_PASSWORD}"}', "clusters", "list"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 5
|
||||
start_period: 60s
|
||||
|
||||
pulsar-init:
|
||||
image: registry.cn-qingdao.aliyuncs.com/jisheyun/pulsar:4.0.6
|
||||
@ -157,7 +163,8 @@ services:
|
||||
echo 'Pulsar initialization completed with Basic Authentication!';
|
||||
"
|
||||
depends_on:
|
||||
- broker
|
||||
broker:
|
||||
condition: service_healthy
|
||||
networks:
|
||||
- pulsar-net
|
||||
|
||||
@ -269,10 +276,10 @@ services:
|
||||
condition: service_started
|
||||
iotdb-standalone-service:
|
||||
condition: service_started
|
||||
zookeeper:
|
||||
condition: service_healthy
|
||||
broker:
|
||||
condition: service_started
|
||||
pulsar-cluster-init:
|
||||
condition: service_completed_successfully
|
||||
condition: service_healthy
|
||||
networks:
|
||||
- pulsar-net
|
||||
|
||||
@ -292,7 +299,7 @@ services:
|
||||
tty: true
|
||||
depends_on:
|
||||
admin-api-service:
|
||||
condition: service_completed_successfully
|
||||
condition: service_started
|
||||
networks:
|
||||
- pulsar-net
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user