This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 0eb2dafbdd2 [fix](case) external case, specify networks (#29699)
0eb2dafbdd2 is described below
commit 0eb2dafbdd268319a90a37a725f94439002f674d
Author: Dongyang Li <[email protected]>
AuthorDate: Tue Jan 9 16:33:29 2024 +0800
[fix](case) external case, specify networks (#29699)
Co-authored-by: stephen <[email protected]>
---
docker/thirdparties/docker-compose/kafka/kafka.yaml.tpl | 12 +++++++++++-
docker/thirdparties/docker-compose/spark/spark.yaml | 11 +++++++++++
2 files changed, 22 insertions(+), 1 deletion(-)
diff --git a/docker/thirdparties/docker-compose/kafka/kafka.yaml.tpl
b/docker/thirdparties/docker-compose/kafka/kafka.yaml.tpl
index 15c61d8d763..41b721938ff 100644
--- a/docker/thirdparties/docker-compose/kafka/kafka.yaml.tpl
+++ b/docker/thirdparties/docker-compose/kafka/kafka.yaml.tpl
@@ -17,6 +17,13 @@
version: "3"
+networks:
+ doris--kafka--network:
+ ipam:
+ driver: default
+ config:
+ - subnet: 168.45.0.0/24
+
services:
doris--zookeeper:
image: wurstmeister/zookeeper
@@ -24,6 +31,8 @@ services:
container_name: doris--zookeeper
ports:
- ${DOCKER_ZOOKEEPER_EXTERNAL_PORT}:2181
+ networks:
+ - doris--kafka--network
doris--kafka:
image: wurstmeister/kafka
restart: always
@@ -39,4 +48,5 @@ services:
KAFKA_BROKER_ID: 1
volumes:
- /var/run/docker.sock:/var/run/docker.sock
-
\ No newline at end of file
+ networks:
+ - doris--kafka--network
diff --git a/docker/thirdparties/docker-compose/spark/spark.yaml
b/docker/thirdparties/docker-compose/spark/spark.yaml
index 26b3797db8e..18719f11325 100644
--- a/docker/thirdparties/docker-compose/spark/spark.yaml
+++ b/docker/thirdparties/docker-compose/spark/spark.yaml
@@ -17,6 +17,13 @@
version: '3.3'
+networks:
+ doris--spark--network:
+ ipam:
+ driver: default
+ config:
+ - subnet: 168.47.0.0/24
+
services:
spark-master:
image: bitnami/spark:3.2.0
@@ -26,6 +33,8 @@ services:
- "7077:7077"
environment:
- SPARK_MASTER_HOST=spark-master
+ networks:
+ - doris--spark--network
spark-worker-1:
image: bitnami/spark:3.2.0
@@ -33,3 +42,5 @@ services:
environment:
- SPARK_MODE=worker
- SPARK_MASTER=spark://spark-master:7077
+ networks:
+ - doris--spark--network
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]