-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathdocker-compose.yml
155 lines (140 loc) · 2.9 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
version: "3"
services:
apis:
image: thanhson1085/api-seed
logging:
driver: fluentd
options:
fluentd-address: "localhost:24224"
tag: "docker.apis"
depends_on:
- db
- redis
- fluentd
networks:
- front-net
- back-net
site:
image: thanhson1085/site-seed
networks:
- front-net
redis:
image: redis:alpine
networks:
- back-net
db:
image: mongo:3.2
volumes:
- "mongodb:/data/db"
networks:
- back-net
kibana:
image: kibana
ports:
- "5601:5601"
environment:
- ELASTICSEARCH_URL=http://elasticsearch:9200
depends_on:
- elasticsearch
networks:
- monitor-net
elasticsearch:
image: elasticsearch
volumes:
- "elasticsearch:/usr/share/elasticsearch/data"
networks:
- monitor-net
fluentd:
image: thanhson1085/fluentd-es
ports:
- "24224:24224"
environment:
- ES_PORT_9200_TCP_ADDR=elasticsearch
networks:
- monitor-net
grafana:
image: grafana/grafana
ports:
- "3000:3000"
depends_on:
- influxdb
environment:
- GF_SECURITY_ADMIN_PASSWORD=admin
networks:
- monitor-net
kapacitor:
image: kapacitor
ports:
- "9092:9092"
depends_on:
- influxdb
volumes:
- ./monitor/kapacitor/kapacitor.conf:/etc/kapacitor/kapacitor.conf:ro
- "kapacitor:/var/lib/kapacitor"
networks:
- monitor-net
influxdb:
image: influxdb
networks:
- monitor-net
volumes:
- "influxdb:/var/lib/influxdb"
ports:
- "8083:8083"
- "8086:8086"
telegraf:
image: telegraf
hostname: nodeone
depends_on:
- influxdb
environment:
- "HOST_PROC=/rootfs/proc"
- "HOST_SYS=/rootfs/sys"
- "HOST_ETC=/rootfs/etc"
volumes:
- ./monitor/telegraf/telegraf.conf:/etc/telegraf/telegraf.conf:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- /sys:/rootfs/sys:ro
- /proc:/rootfs/proc:ro
- /etc:/rootfs/etc:ro
networks:
- monitor-net
gateway:
image: nginx
logging:
driver: fluentd
options:
fluentd-address: "localhost:24224"
tag: "docker.gateway"
volumes:
- ./nginx/app.template:/etc/nginx/conf.d/default.conf
- ./nginx/nginx.template:/etc/nginx/nginx.conf
- ./nginx/:/intermission/
ports:
- "80:80"
- "443:443"
depends_on:
- apis
networks:
- front-net
# gateway:
# image: openresty/openresty:jessie
# volumes:
# - ./openresty/nginx.conf:/usr/local/openresty/nginx/conf/nginx.conf
# - ./openresty/:/intermission/
# ports:
# - "80:80"
# - "443:443"
# depends_on:
# - apis
# networks:
# - front-net
volumes:
mongodb:
influxdb:
kapacitor:
elasticsearch:
networks:
front-net:
back-net:
monitor-net: