forked from 2227324689/gpmall
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
70 lines (70 loc) · 1.79 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
version: '3'
services:
db1:
image: mysql
ports:
- "3306:3306"
environment:
- MYSQL_ROOT_PASSWORD=123456
- MYSQL_DATABASE=gpmall
volumes:
- "/Users/wangzhong/datas/mysql:/var/lib/mysql"
elasticsearch:
image: elasticsearch:6.6.1
environment:
- cluster.name=elasticsearch
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
ports:
- 9200:9200
- 9300:9300
volumes:
- "/Users/wangzhong/datas/es/data:/usr/share/elasticsearch/data"
#- "/Users/wangzhong/datas/es/plugins:/usr/share/elasticsearch/plugins"
kibana:
image: kibana:6.6.1
environment:
SERVER_NAME:
ELASTICSEARCH_HOSTS: http://localhost:9200
ports:
- 5601:5601
kafka:
image: wurstmeister/kafka
ports:
- "9092:9092"
environment:
KAFKA_ADVERTISED_HOST_NAME: localhost
KAFKA_ADVERTISED_PORT: 9092
# HOSTNAME_COMMAND: "cat /etc/hosts | tail -1 | awk '{print $$1}'"
# KAFKA_ADVERTISED_LISTENERS: INSIDE://:9092,OUTSIDE://_{HOSTNAME_COMMAND}:9094
# KAFKA_LISTENERS: INSIDE://:9092,OUTSIDE://:9094
# KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INSIDE:PLAINTEXT,OUTSIDE:PLAINTEXT
# KAFKA_INTER_BROKER_LISTENER_NAME: INSIDE
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
redis:
image: redis
ports:
- "6379:6379"
zookeeper:
image: wurstmeister/zookeeper
ports:
- "2181:2181"
rabbitmq:
image: rabbitmq:management
ports:
- "4369:4369"
- "5671:5671"
- "25672:25672"
- "5672:5672"
- "15672:15672"
container_name: rabbitmq
hostname: rabbitmq
environment:
RABBITMQ_DEFAULT_USER: rabbitmq
RABBITMQ_DEFAULT_PASS: 123456
RABBITMQ_NODENAME: rabbitmq
RABBITMQ_ERLANG_COOKIE: CURIOAPPLICATION