-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
63 lines (58 loc) · 1.31 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
version: "3"
services:
mysql:
image: mysql:8
container_name: mysql
volumes:
- ./.data/mysql:/var/lib/mysql
environment:
- TZ=Asia/Seoul
- MYSQL_USER=dankook
- MYSQL_PASSWORD=password
- MYSQL_DATABASE=dankook
- MYSQL_ROOT_PASSWORD=password
command:
- --lower_case_table_names=1
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci
ports:
- "3306:3306"
networks:
- dankook
redis:
image: redis:7
volumes:
- ./data/redis:/data
command: redis-server --port 6379
ports:
- "6379:6379"
networks:
- dankook
zookeeper:
platform: linux/amd64
image: wurstmeister/zookeeper
container_name: pzookeeper
ports:
- "2181:2181"
networks:
- dankook
kafka:
image: wurstmeister/kafka
container_name: kafka
ports:
- "9092:9092"
environment:
KAFKA_ADVERTISED_HOST_NAME: 127.0.0.1
KAFKA_ADVERTISED_PORT: 9092
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'true'
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_OFFSETS_TOPIC_NUM_PARTITIONS: 3
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
- dankook
networks:
dankook:
labels:
- dankook