forked from elastic/apm-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
66 lines (63 loc) · 2.31 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
version: '2.3'
services:
beat:
build:
context: .
dockerfile: tests/Dockerfile
depends_on:
- proxy_dep
volumes:
- .:/src/apm-server/
working_dir: /src/apm-server
command: make
environment:
BEAT_STRICT_PERMS: "${BEAT_STRICT_PERMS:-false}"
ES_HOST: elasticsearch
ES_PORT: "9200"
ES_USER: "${ES_USER:-apm_server_user}"
ES_SUPERUSER_USER: "${ES_SUPERUSER_USER:-admin}"
ES_SUPERUSER_PASS: "${ES_SUPERUSER_PASS:-changeme}"
KIBANA_HOST: kibana
KIBANA_PORT: "5601"
KIBANA_USER: "${BEAT_KIBANA_USER:-apm_user_ro}"
KIBANA_PASS: "${BEAT_KIBANA_PASS:-changeme}"
SYSTEM_TEST_TARGET: "${SYSTEM_TEST_TARGET:-}"
# This is a proxy used to block beats until all services are healthy.
# See: https://github.com/docker/compose/issues/4369
proxy_dep:
image: busybox
depends_on:
elasticsearch: { condition: service_healthy }
kibana: { condition: service_healthy }
elasticsearch:
ports:
- 9200:9200
extends:
file: ./testing/environments/${TESTING_ENVIRONMENT:-snapshot}.yml
service: elasticsearch
environment:
- "cluster.routing.allocation.disk.threshold_enabled=false"
- "discovery.type=single-node"
- "xpack.security.authc.anonymous.roles=remote_monitoring_collector"
- "xpack.security.authc.realms.file.file1.order=0"
- "xpack.security.authc.realms.native.native1.order=1"
- "xpack.security.enabled=true"
- "xpack.license.self_generated.type=trial"
- "xpack.security.authc.token.enabled=true"
- "xpack.security.authc.api_key.enabled=true"
- "logger.org.elasticsearch=${ES_LOG_LEVEL:-error}"
volumes:
- "./testing/docker/elasticsearch/roles.yml:/usr/share/elasticsearch/config/roles.yml"
- "./testing/docker/elasticsearch/users:/usr/share/elasticsearch/config/users"
- "./testing/docker/elasticsearch/users_roles:/usr/share/elasticsearch/config/users_roles"
kibana:
ports:
- 5601:5601
extends:
file: ./testing/environments/${TESTING_ENVIRONMENT:-snapshot}.yml
service: kibana
environment:
STATUS_ALLOWANONYMOUS: "true"
ELASTICSEARCH_URL: elasticsearch:9200
ELASTICSEARCH_USERNAME: "${KIBANA_ES_USER:-kibana_system_user}"
ELASTICSEARCH_PASSWORD: "${KIBANA_ES_PASS:-changeme}"