-
Notifications
You must be signed in to change notification settings - Fork 47
/
docker-compose-log.yml
149 lines (138 loc) · 4.08 KB
/
docker-compose-log.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
version: '3'
services:
log-metrics:
hostname: docker-host
image: chaconpiza/log-metrics:${MON_LOG_METRICS_VERSION}
restart: unless-stopped
environment:
LOGSTASH_FIELDS: "service=monasca-log-metrics"
depends_on:
- kafka
- zookeeper
- log-transformer
log-persister:
hostname: docker-host
image: chaconpiza/log-persister:${MON_LOG_PERSISTER_VERSION}
restart: unless-stopped
environment:
LOGSTASH_FIELDS: "service=monasca-log-persister"
depends_on:
- kafka
- zookeeper
- elasticsearch
- log-transformer
log-transformer:
hostname: docker-host
image: chaconpiza/log-transformer:${MON_LOG_TRANSFORMER_VERSION}
restart: unless-stopped
environment:
LOGSTASH_FIELDS: "service=monasca-log-transformer"
depends_on:
- kafka
- zookeeper
- log-api
elasticsearch:
hostname: elasticsearch
image: monasca/elasticsearch:${MON_ELASTICSEARCH_VERSION}
restart: unless-stopped
environment:
ES_JAVA_OPTS: ${MON_ELASTICSEARCH_HEAP_SIZE}
discovery.type: "single-node"
LOGSTASH_FIELDS: "service=elasticsearch"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- ${MON_DOCKER_VOL_ROOT}/elasticsearch/data:/usr/share/elasticsearch/data:Z
- ${MON_BACKUP_DIR}/elasticsearch_backup:/usr/share/elasticsearch/backup:Z
elasticsearch-init:
hostname: docker-host
image: monasca/elasticsearch-init:${MON_ELASTICSEARCH_INIT_VERSION}
environment:
LOGSTASH_FIELDS: "service=elasticsearch-init"
depends_on:
- elasticsearch
elasticsearch-curator:
hostname: docker-host
image: chaconpiza/elasticsearch-curator:${MON_ELASTICSEARCH_CURATOR_VERSION}
restart: unless-stopped
environment:
CURATOR_EXCLUDED_INDEX_NAME: .kibana
CURATOR_DELETE_BY_AGE: ${MON_ELASTICSEARCH_DATA_RETENTION_DAYS}
LOGSTASH_FIELDS: "service=elasticsearch-curator"
depends_on:
- elasticsearch
kafka-log-init:
hostname: docker-host
image: chaconpiza/kafka-init:${MON_KAFKA_INIT_VERSION}
environment:
KAFKA_TOPIC_CONFIG: segment.ms=900000 # 15m
KAFKA_CREATE_TOPICS: "\
log:4:1,\
log-transformed:4:1"
LOGSTASH_FIELDS: "service=kafka-log-init"
depends_on:
- kafka
kibana:
hostname: docker-host
image: chaconpiza/kibana:${MON_KIBANA_VERSION}
restart: unless-stopped
environment:
KEYSTONE_URI: ${MON_KEYSTONE_URL}
MONASCA_PLUGIN_ENABLED: ${MON_MONASCA_PLUGIN_ENABLED}
BASE_PATH: ${MON_BASE_PATH}
LOGSTASH_FIELDS: "service=kibana"
depends_on:
- elasticsearch
ports:
- 5601:5601
log-api:
hostname: docker-host
image: monasca/api:${MON_API_VERSION}
restart: unless-stopped
environment:
KEYSTONE_IDENTITY_URI: ${MON_KEYSTONE_URL}
KEYSTONE_AUTH_URI: ${MON_KEYSTONE_URL}
KEYSTONE_ADMIN_USER: ${MON_KEYSTONE_ADMIN_USER}
KEYSTONE_ADMIN_PASSWORD: ${MON_KEYSTONE_ADMIN_PASSWORD}
DELEGATE_AUTHORIZED_ROLES: "monitoring-delegate"
ENABLE_METRICS_API: 'false'
ENABLE_LOGS_API: 'true'
GUNICORN_WORKERS: '3'
GUNICORN_TIMEOUT: '60'
LOGSTASH_FIELDS: "service=monasca-log-api"
depends_on:
- influxdb
- mysql
- zookeeper
- kafka
- memcached
ports:
- "5607:8070"
log-agent:
hostname: docker-host
image: chaconpiza/log-agent:${MON_LOG_AGENT_VERSION}
restart: unless-stopped
environment:
OS_AUTH_URL: ${MON_KEYSTONE_URL}/v3
OS_USERNAME: ${MON_AGENT_USERNAME}
OS_PASSWORD: ${MON_AGENT_PASSWORD}
OS_PROJECT_NAME: ${MON_AGENT_PROJECT_NAME}
LOGSPOUT: ignore
LOGSTASH_FIELDS: "service=monasca-log-agent"
depends_on:
- log-api
logspout:
hostname: docker-host
image: chaconpiza/logspout:${MON_LOGSPOUT_VERSION}
restart: unless-stopped
privileged: true
environment:
RETRY_SEND: "true"
LOGSPOUT: ignore
LOGSTASH_FIELDS: "service=logspout"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
depends_on:
- log-agent