-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
38 lines (38 loc) · 1.02 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
version: "3.8"
services:
zookeeper:
image: wurstmeister/zookeeper:latest
container_name: zookeeper
ports:
- "2181:2181"
kafka:
image: wurstmeister/kafka:latest
container_name: kafka
ports:
- "9092:9092"
environment:
KAFKA_ADVERTISED_HOST_NAME: kafka
# KAFKA_LISTENERS: PLAINTEXT://:9092
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
# KAFKA_CREATE_TOPICS: "kafka-chat:1:1"
# KAFKA_ADVERTISED_LISTENERS: kafka:9092
volumes:
- /var/run/docker.sock:/var/run/docker.sock
client:
build:
context: "./client"
dockerfile: Dockerfile
restart: on-failure
ports:
- "3000:3000"
server:
build:
context: "./server"
dockerfile: Dockerfile
restart: on-failure
depends_on:
- kafka
ports:
- "9100:9100"
environment:
- TZ=Asia/Seoul