Commit b602166f authored by 吴文龙's avatar 吴文龙

优化同步服务部署

parent 028c425c
version: '3'
services:
connect:
restart: always
image: 47.110.145.204:8084/huansiyl/debezium/connect:1.9.5.Final
ports:
- 8083:8083
extra_hosts:
- "postgres:162.242.195.82"
environment:
- BOOTSTRAP_SERVERS=121.199.175.235:31092
- GROUP_ID=2
- CONFIG_STORAGE_TOPIC=xx_connect_configs
- OFFSET_STORAGE_TOPIC=xx_connect_offsets
- STATUS_STORAGE_TOPIC=xx_connect_statuses
- CONFIG_STORAGE_TOPIC=${EDGE_VERSION}_connect_configs
- OFFSET_STORAGE_TOPIC=${EDGE_VERSION}_connect_offsets
- STATUS_STORAGE_TOPIC=${EDGE_VERSION}_connect_statuses
sync:
restart: always
image: 47.110.145.204:8084/huansiyl/thingsboard/hs-data-syn:latest
expose:
- 8080
environment:
- TB_KAFKA_SERVERS=121.199.175.235:31092
- SPRING_CONSUMER_GROUP_ID=xinxiang
- SPRING_CONSUMER_GROUP_ID=${EDGE_VERSION}
- SPRING_CONSUMER_TOPIC_PRE=cloud
# - SPRING_CONSUMER_TOPIC_NAME=public.tb_user
- SPRING_DATASOURCE_URL=jdbc:postgresql://postgres:5432/hsiotdb?stringtype=unspecified
\ No newline at end of file
......@@ -25,4 +25,4 @@ ADDITIONAL_COMPOSE_ARGS=$(additionalComposeArgs) || exit $?
ADDITIONAL_COMPOSE_MONITORING_ARGS=$(additionalComposeMonitoringArgs) || exit $?
docker-compose -f docker-compose.yml $ADDITIONAL_COMPOSE_ARGS $ADDITIONAL_COMPOSE_QUEUE_ARGS $ADDITIONAL_COMPOSE_MONITORING_ARGS down -v
docker-compose -f docker-compose.yml $ADDITIONAL_COMPOSE_ARGS $ADDITIONAL_COMPOSE_QUEUE_ARGS $ADDITIONAL_COMPOSE_MONITORING_ARGS -f docker-compose.sync.yaml down -v
......@@ -25,4 +25,4 @@ ADDITIONAL_COMPOSE_ARGS=$(additionalComposeArgs) || exit $?
ADDITIONAL_COMPOSE_MONITORING_ARGS=$(additionalComposeMonitoringArgs) || exit $?
docker-compose -f docker-compose.yml $ADDITIONAL_COMPOSE_ARGS $ADDITIONAL_COMPOSE_QUEUE_ARGS $ADDITIONAL_COMPOSE_MONITORING_ARGS up -d
docker-compose -f docker-compose.yml $ADDITIONAL_COMPOSE_ARGS $ADDITIONAL_COMPOSE_QUEUE_ARGS $ADDITIONAL_COMPOSE_MONITORING_ARGS -f docker-compose.sync.yaml up -d
......@@ -25,4 +25,4 @@ ADDITIONAL_COMPOSE_ARGS=$(additionalComposeArgs) || exit $?
ADDITIONAL_COMPOSE_MONITORING_ARGS=$(additionalComposeMonitoringArgs) || exit $?
docker-compose -f docker-compose.yml $ADDITIONAL_COMPOSE_ARGS $ADDITIONAL_COMPOSE_QUEUE_ARGS $ADDITIONAL_COMPOSE_MONITORING_ARGS stop
docker-compose -f docker-compose.yml $ADDITIONAL_COMPOSE_ARGS $ADDITIONAL_COMPOSE_QUEUE_ARGS $ADDITIONAL_COMPOSE_MONITORING_ARGS -f docker-compose.sync.yaml stop
......@@ -23,5 +23,5 @@ ADDITIONAL_COMPOSE_QUEUE_ARGS=$(additionalComposeQueueArgs) || exit $?
ADDITIONAL_COMPOSE_ARGS=$(additionalComposeArgs) || exit $?
docker-compose -f docker-compose.yml $ADDITIONAL_COMPOSE_ARGS $ADDITIONAL_COMPOSE_QUEUE_ARGS pull $@
docker-compose -f docker-compose.yml $ADDITIONAL_COMPOSE_ARGS $ADDITIONAL_COMPOSE_QUEUE_ARGS up -d --no-deps --build $@
docker-compose -f docker-compose.yml $ADDITIONAL_COMPOSE_ARGS $ADDITIONAL_COMPOSE_QUEUE_ARGS -f docker-compose.sync.yaml pull $@
docker-compose -f docker-compose.yml $ADDITIONAL_COMPOSE_ARGS $ADDITIONAL_COMPOSE_QUEUE_ARGS -f docker-compose.sync.yaml up -d --no-deps --build $@
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment