Skip to content

Commit db7f629

Browse files
Merge pull request #3 from Ke-vin-S/himath/docker-compose
Added network to docker-compose file
2 parents 0658558 + c1527a9 commit db7f629

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

docker-compose.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ services:
66
environment:
77
ZOOKEEPER_CLIENT_PORT: 2181
88
ZOOKEEPER_TICK_TIME: 2000
9+
networks:
10+
- scms
911

1012
kafka:
1113
image: confluentinc/cp-kafka:7.4.0
@@ -19,6 +21,8 @@ services:
1921
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
2022
depends_on:
2123
- zookeeper
24+
networks:
25+
- scms
2226

2327
logistics-service:
2428
build: .
@@ -31,6 +35,8 @@ services:
3135
env_file: .env
3236
depends_on:
3337
- kafka
38+
networks:
39+
- scms
3440

3541
kafka-consumer:
3642
build: .
@@ -39,3 +45,10 @@ services:
3945
- KAFKA_BROKER_URL=kafka:9092
4046
depends_on:
4147
- kafka
48+
networks:
49+
- scms
50+
51+
networks:
52+
scms:
53+
external: true
54+
name: scms-network

0 commit comments

Comments
 (0)