forked from elastic/apm-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
83 lines (79 loc) · 3.07 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
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}"
XPACK_XPACK_MAIN_TELEMETRY_ENABLED: "false"
XPACK_SECURITY_ENCRYPTIONKEY: "fhjskloppd678ehkdfdlliverpoolfcr"
XPACK_ENCRYPTEDSAVEDOBJECTS_ENCRYPTIONKEY: "fhjskloppd678ehkdfdlliverpoolfcr"
XPACK_FLEET_AGENTS_ELASTICSEARCH_HOST: "http://elasticsearch:9200"
XPACK_FLEET_AGENTS_KIBANA_HOST: "http://kibana:5601"
XPACK_FLEET_AGENTS_TLSCHECKDISABLED: "true"
XPACK_FLEET_REGISTRYURL: "http://package-registry:8080"
depends_on:
package-registry: { condition: service_healthy }
package-registry:
image: docker.elastic.co/package-registry/distribution:snapshot
ports:
- 8080
volumes:
- "./testing/docker/package-registry/config.yml:/package-registry/config.yml"
- "./apmpackage/apm:/packages/local/apm"