-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
68 lines (63 loc) · 1.6 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
version: '2'
services:
beat:
build: ${PWD}/.
depends_on:
- logstash
- elasticsearch
- redis
- sredis
- kafka
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379
- SREDIS_HOST=sredis
- SREDIS_PORT=6380
- LS_HOST=logstash
- LS_TCP_PORT=5044
- LS_TLS_PORT=5055
# Setup work environment
- LIBBEAT_PATH=/go/src/github.com/elastic/beats/libbeat
# TODO: Set to true as soon as stable release is out
- SHIELD=false
- KAFKA_HOST=kafka
- KAFKA_PORT=9092
env_file:
- ${PWD}/build/test.env
volumes:
- ${PWD}/..:/go/src/github.com/elastic/beats/
working_dir: /go/src/github.com/elastic/beats/libbeat
command: make
entrypoint: /go/src/github.com/elastic/beats/libbeat/scripts/docker-entrypoint.sh
elasticsearch:
extends:
file: ../testing/environments/${TESTING_ENVIRONMENT}.yml
service: elasticsearch
# This host name is fixed because of the certificate
logstash:
extends:
file: ../testing/environments/${TESTING_ENVIRONMENT}.yml
service: logstash
env_file:
- ${PWD}/build/test.env
redis:
image: redis:3.2.4-alpine
# This host name is fixed because of the certificate
sredis: # stunnel proxy for redis
build: ${PWD}/../testing/environments/docker/sredis
expose:
- 6380
links:
- redis
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379
env_file:
- ${PWD}/build/test.env
kafka:
image: spotify/kafka
expose:
- 9092
- 2181
environment:
- ADVERTISED_HOST=kafka