forked from macrozheng/mall
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
62 lines (62 loc) · 1.34 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
version: '2'
services:
mysql:
image: mysql:5.7
ports:
- 3306:3306
volumes:
- /mydata/mysql/data:/var/lib/mysql
- /mydata/mysql/conf:/etc/mysql
- /mydata/mysql/log:/var/log/mysql
environment:
- MYSQL_ROOT_PASSWORD:root
elasticsearch:
image: elasticsearch:2.4
ports:
- 9200:9200
- 9300:9300
volumes:
- /mydata/elasticsearch/plugins:/usr/share/elasticsearch/plugins
- /mydata/elasticsearch/data:/usr/share/elasticsearch/data
redis:
image: redis:3.2
ports:
- 6379:6379
volumes:
- /mydata/redis/data:/data
command: redis-server --appendonly yes
mongo:
image: mongo:3.2
ports:
- 27017:27017
volumes:
- /mydata/mongo/db:/data/db
nginx:
image: nginx:1.10
ports:
- 80:80
volumes:
- /mydata/nginx/html:/usr/share/nginx/html
- /mydata/nginx/logs:/var/log/nginx
- /mydata/nginx/conf:/etc/nginx
mall-admin:
image: mall/mall-admin:0.0.1-SNAPSHOT
ports:
- 8080:8080
links:
- mysql:db
mall-search:
image: mall/mall-search:0.0.1-SNAPSHOT
ports:
- 8081:8081
links:
- elasticsearch:es
- mysql:db
mall-portal:
image: mall/mall-portal:0.0.1-SNAPSHOT
ports:
- 8085:8085
links:
- redis:redis
- mongo:mongo
- mysql:db