-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
83 lines (78 loc) · 2.16 KB
/
docker-compose.yml
File metadata and controls
83 lines (78 loc) · 2.16 KB
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: '3'
services:
client-app:
build:
context: ./client-app
networks:
- envoymesh
environment:
- INSTANA_DEV=1
- target_url=http://envoy-gateway:8000/envoy-demo
envoy:
build:
context: ./envoy
args:
agent_key: ${agent_key}
download_key: ${download_key}
volumes:
- ./envoy/envoy-gateway.yaml:/etc/envoy-gateway.yaml
networks:
envoymesh:
aliases:
- envoy-gateway
environment:
- INSTANA_DEV=1
- INSTANA_AGENT_HOST=instana-agent
- INSTANA_AGENT_PORT=42699
ports:
- "8000:8000"
- "8001:8001"
server-app:
build:
context: ./server-app
args:
agent_key: ${agent_key}
download_key: ${download_key}
networks:
envoymesh:
aliases:
- server-app
environment:
- INSTANA_DEV=1
- INSTANA_AGENT_HOST=instana-agent
- INSTANA_AGENT_PORT=42699
- SERVER_PORT=8080
expose:
- "8080"
agent:
image: icr.io/instana/agent
pid: "host"
privileged: true
volumes:
- /var/run:/var/run
- /run:/run
- ./agent/configuration.yaml:/opt/instana/agent/etc/instana/configuration.yaml:ro
# Include the File.cfg so spans are written to disk. We use them to verify which spans have been sent to the agent.
- ./agent/com.instana.agent.main.sender.File.cfg:/opt/instana/agent/etc/instana/com.instana.agent.main.sender.File.cfg:ro
# Mount the logs directly so we can directly access the span-*.log files to check the produced spans.
- ./agent/logs:/opt/instana/agent/data/log
networks:
envoymesh:
aliases:
- instana-agent
environment:
- INSTANA_AGENT_ENDPOINT=${agent_endpoint:-ingress-red-saas.instana.io}
- INSTANA_AGENT_ENDPOINT_PORT=${agent_endpoint_port:-443}
- INSTANA_AGENT_KEY=${agent_key}
- INSTANA_DOWNLOAD_KEY=${download_key}
- INSTANA_AGENT_ZONE=${agent_zone:-envoy-tracing-demo}
healthcheck:
test: ["CMD", "curl", "localhost:42699"]
interval: 8s
timeout: 10s
retries: 5
expose:
- "42699"
- "4317"
networks:
envoymesh: {}