---
# System prepended metadata

title: Docker Networking
tags: [Docker]

---

---
title: Docker Networking
tags: Docker
image:
---

# Docker Networking

* 不同 docker-compose，==CMAK== 與 TB MSA (192.168.1.206) **zookeeper** 溝通。 
```yaml!
version: '3.6'
services:
  cmak:
    image: ghcr.io/eshepelyuk/dckr/cmak-3.0.0.6:latest
    restart: always
    ports:
      - "9000:9000"
    environment:
      ZK_HOSTS: "zookeeper:2181"
    network_mode: "docker_default"
```
* 不同 docker-compose，==kafka-ui== 與 TB MSA (192.168.1.206) **kafka** 溝通。 
```yaml
version: '2'
services:
  kafka-ui:
    image: provectuslabs/kafka-ui:latest
    container_name: kafka-ui
    restart: always
    ports:
      - 10010:8080
    environment:
      - KAFKA_CLUSTERS_0_NAME=kafka
      - KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS=kafka:9092
    volumes:
      - ~/kui/config.yml:/etc/kafkaui/dynamic_config.yaml
    network_mode: "docker_default"
```


## References