-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
113 lines (102 loc) · 2.78 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
version: '3'
services:
mysql-local:
image: mysql:5.7
container_name: mysql-local
restart: unless-stopped
environment:
- MYSQL_ROOT_PASSWORD=123456
ports:
- 3306:3306
networks:
- db_sharing
command: --sql_mode=""
postgres-local:
image: postgres
container_name: postgres-local
restart: unless-stopped
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: 123456
POSTGRES_DB: 'dev'
ports:
- 5432:5432
networks:
- db_sharing
rabbit-local:
image: rabbitmq:3.7.15-management
container_name: rabbit-local
hostname: localhost
restart: unless-stopped
ports:
- 15672:15672
- 5672:5672
redis-local:
image: redis
container_name: redis-local
restart: unless-stopped
ports:
- 6379:6379
networks:
- db_sharing
mongo-local:
image: mongo
container_name: mongo-local
hostname: localhost
restart: unless-stopped
ports:
- 27017:27017
volumes:
- mongodb_data:/data/db
zookeeper:
container_name: zookeeper
image: wurstmeister/zookeeper:3.4.6
restart: unless-stopped
ports:
- "2181:2181"
kafka:
container_name: kafka
image: wurstmeister/kafka:2.12-2.3.0
restart: unless-stopped
ports:
- "9092:9092"
- "9094:9094"
depends_on:
- zookeeper
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://localhost:9092
KAFKA_LISTENERS: PLAINTEXT://0.0.0.0:9092
KAFKA_HEAP_OPTS: "-Xms1G -Xmx4G"
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_JMX_OPTS: "-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=localhost -Dcom.sun.management.jmxremote.rmi.port=9094 -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.port=9094 -Djava.net.preferIPv4Stack=true"
JMX_PORT: 9094
volumes:
- /var/run/docker.sock:/var/run/docker.sock
kafka-manager:
container_name: kafka-manager
image: hlebalbau/kafka-manager:2.0.0.2
restart: unless-stopped
depends_on:
- zookeeper
- kafka
command: -Dconfig.file=/kafka-manager/conf/application.conf -Dapplication.home=/kafkamanager
environment:
- ZK_HOSTS=zookeeper
ports:
- "9000:9000"
# jupyter:
# image: jupyter/datascience-notebook
# volumes:
# - ./data/notebooks:/home/jovyan/work
# ports:
# - "8888:8888"
# deploy:
# resources:
# limits:
# memory: 1g
networks:
db_sharing:
volumes:
mongodb_data: