forked from ProTip/aws-elk-billing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
90 lines (87 loc) · 2.12 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
#Run docker container in the background
#docker-compose up -d
version: '2'
services:
aws-elk-billing:
logging:
driver: "json-file"
options:
max-size: 1000m
build: .
environment:
- DEBIAN_FRONTEND=noninteractive
- TERM=xterm
- ENV=prod
- AWS_DATE=20200901-20201001
volumes:
- .:/aws-elk-billing
depends_on:
- kibana
- logstash
- elasticsearch
links:
- kibana:kibana
- logstash:logstash
- elasticsearch:elasticsearch
env_file:
- prod.env
command: bash -c "python -u /aws-elk-billing/orchestrate.py && ./gCloud_json_to_elasticseach.sh"
logstash:
image: logstash:2.4.1-alpine # was 2.3.1
logging:
driver: "json-file"
options:
max-size: 1000m
ports:
- 127.0.0.1:5140:5140
depends_on:
- elasticsearch
links:
- elasticsearch:elasticsearch
volumes:
- ./logstash.conf:/logstash.conf
command: "logstash -f /logstash.conf"
kibana:
# image: rlister/kibana4 - did not fully test :( should work with ELASTICSEARCH_UTL - 4.0.2
# image: million12/kibana4 - 4.4.1
image: fabric8/kibana4
logging:
driver: "json-file"
options:
max-size: 1000m
environment:
- ELASTICSEARCH_URL=http://elasticsearch:9200
volumes:
- ./kibana.yml:/opt/kibana4/config/kibana.yml
ports:
- 127.0.0.1:15601:5601
depends_on:
- elasticsearch
links:
- elasticsearch:elasticsearch
elasticsearch:
image: gwidx/elasticsearch-2.3
logging:
driver: "json-file"
options:
max-size: 1000m
environment:
- ENV=prod
- ES_NODE_MASTER=true
- ES_NODE_DATA=true
- ES_NODE_INGEST=true
- ES_HOST=0.0.0.0
- ES_NETWORK_HOST=0.0.0.0
- ES_PUBLISH_HOST=localhost
- ES_PUBLISH_PORT=9200
- ES_CLUSTER_DISCOVERY_TAG="elk"
- ES_CLUSTER_NAME=elkprice
env_file:
- prod.env
volumes:
- /mnt/data/awselk/elkprice:/usr/share/elasticsearch/data/elkprice
ports:
- 127.0.0.1:9200:9200
- 127.0.0.1:9300:9300
volumes:
elkprice: