-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-local.yaml
67 lines (66 loc) · 1.85 KB
/
docker-compose-local.yaml
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
name: backend
services:
jwt-decode:
container_name: jwt-decode
build:
context: .
dockerfile: Dockerfile
environment:
TZ: America/Sao_Paulo
ELASTIC_APM_SERVER_URL: http://apm-server:8200
ELASTIC_APM_SERVICE_NAME: jwt-decode
ELASTIC_APM_SECRET_TOKEN: xbXlfYXBtX3NlY3JldF90b2tlbiAtbgo=
ELASTIC_APM_ENVIRONMENT: local
SWAGGER_PROTOCOL: http
SWAGGER_BASE_HOST: localhost
ports:
- "8001:8001"
depends_on:
- apm-server
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.7.1
container_name: elastisearch
environment:
- "cluster.routing.allocation.disk.threshold_enabled=false"
- "discovery.type=single-node"
- xpack.security.enabled=false
- ES_JAVA_OPTS=-Xms512m -Xmx512m
ports:
- 9200:9200
healthcheck:
test: [ 'CMD', 'curl', '-f', 'http://localhost:9200' ]
interval: 10s
timeout: 5s
retries: 3
kibana:
image: docker.elastic.co/kibana/kibana:7.7.1
container_name: kibana
environment:
- "SERVER_HOST=0.0.0.0"
ports:
- 5601:5601
healthcheck:
test: [ 'CMD', 'curl', '-f', 'http://localhost:5601' ]
interval: 10s
timeout: 5s
retries: 10
depends_on:
elasticsearch:
condition: service_healthy
apm-server:
image: docker.elastic.co/apm/apm-server:7.7.1
container_name: apm-server
ports:
- 8200:8200
environment:
- output.elasticsearch.hosts=['http://elasticsearch:9200']
- apm-server.host="0.0.0.0:8200"
- apm-server.secret_token="xbXlfYXBtX3NlY3JldF90b2tlbiAtbgo="
- setup.kibana.host="kibana:5601"
- setup.template.enabled=true
- logging.to_files=false
depends_on:
elasticsearch:
condition: service_healthy
kibana:
condition: service_healthy