-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
76 lines (69 loc) · 1.73 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
version: '2'
services:
elasticsearch:
build: ./.docker/elasticsearch
ports:
- "9200:9200"
- "9300:9300"
volumes:
- "./data:/usr/share/elasticsearch/data"
kibana:
build: ./.docker/kibana
ports:
- "5601:5601"
links:
- elasticsearch
redis:
image: redis:alpine
ports:
- "6379:6379"
command: ["redis-server", "/etc/redis/redis.conf"]
volumes:
- "./.docker/redis/redis.conf:/etc/redis/redis.conf"
logstash:
build: ./.docker/logstash
volumes:
- "./sample:/tmp/data/"
ports:
- "5044:5044"
links:
- elasticsearch
- mysql
mysql:
image: "mysql:5.7.19"
restart: always
ports:
- "33060:33060"
environment:
MYSQL_ROOT_PASSWORD: "123456"
volumes:
- ./data/mysql-data:/var/lib/mysql
- './.docker/mysql/mysqld.cnf:/etc/mysql/mysql.conf.d/mysqld.cnf'
app:
image: "node:8"
user: "node"
working_dir: /home/node/app
environment:
- NODE_ENV=production
volumes:
- ./:/home/node/app
ports:
- "3000:3000"
command: "npm start"
links:
- elasticsearch
- mysql
- redis
listener:
image: "node:8"
user: "node"
working_dir: /home/node/app
environment:
- NODE_ENV=production
volumes:
- ./:/home/node/app
command: "npm run listen"
links:
- elasticsearch
- mysql
- redis