This repository has been archived by the owner on Mar 31, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
112 lines (103 loc) · 2.65 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
###
### Elastic Stack
###
version: "3.3"
networks:
default:
services:
elastic_stack:
image: tianon/true
depends_on:
- es
- kb
- ls
es:
image: ${ELASTICSEARCH_IMAGE}
environment:
- DOCKER_ENTRYPOINT_DEBUG=true
- DOCKER_ENTRYPOINT_INFO=true
- ES_JAVA_OPTS=-Xms512m -Xmx512m
- XPACK_EDITION=basic
- discovery.type=single-node
ports:
- 9200:9200/tcp
networks:
default:
aliases:
- es.local
volumes:
- es_data:/usr/share/elasticsearch/data
- /var/run/docker.sock:/var/run/docker.sock:ro
kb:
image: ${KIBANA_IMAGE}
depends_on:
- es
environment:
- DOCKER_ENTRYPOINT_DEBUG=true
- DOCKER_ENTRYPOINT_INFO=true
- ELASTICSEARCH_URL=http://es.local:9200
ports:
- 5601:5601/tcp
networks:
default:
aliases:
- kb.local
volumes:
- kb_data:/usr/share/kibana/data
- /var/run/docker.sock:/var/run/docker.sock:ro
ls:
image: ${LOGSTASH_IMAGE}
command:
--pipeline.workers 2
--path.config pipeline/*.conf
environment:
- DOCKER_ENTRYPOINT_DEBUG=true
- DOCKER_ENTRYPOINT_INFO=true
- LS_HEAP_SIZE=512m
- ELASTICSEARCH_URL=http://es.local:9200
- XPACK_MONITORING_ENABLED=true
networks:
default:
aliases:
- ls.local
volumes:
- ls_data:/usr/share/logstash/data
- ./logstash:/usr/share/logstash/pipeline
- /var/run/docker.sock:/var/run/docker.sock:ro
test:
image: ${TEST_IMAGE}
command: ${TEST_CMD}
depends_on:
- elastic_stack
env_file:
- ${TEST_ENV_FILE}
environment:
- DOCKER_ENTRYPOINT_DEBUG=true
- DOCKER_ENTRYPOINT_INFO=true
- ELASTICSEARCH_CONTAINER=${COMPOSE_PROJECT_NAME}_es_1
- KIBANA_CONTAINER=${COMPOSE_PROJECT_NAME}_kb_1
- LOGSTASH_CONTAINER=${COMPOSE_PROJECT_NAME}_ls_1
- ELASTICSEARCH_URL=http://es.local:9200
- KIBANA_URL=http://kb.local:5601
- LOGSTASH_URL=tcp://ls.local:5514
- WAIT_FOR_TCP=es.local:9200 kb.local:5601 ls.local:5514
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
# Use project dir as host volume for debugging tests if Docker host is local
- ${TEST_PROJECT_DIR:-test_project_dir}:${PROJECT_DIR}
working_dir: ${TEST_DIR}
wait:
image: ${TEST_IMAGE}
depends_on:
- elastic_stack
environment:
- DOCKER_ENTRYPOINT_DEBUG=true
- DOCKER_ENTRYPOINT_INFO=true
- WAIT_FOR_TCP=es.local:9200 kb.local:5601
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
volumes:
es_data:
kb_data:
ls_data:
test_project_dir: