-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
76 lines (71 loc) · 2.16 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
version: '3'
services:
client-app:
build:
context: ./client-app
networks:
- nginxmesh
environment:
- INSTANA_DEV=1
- target_url=http://nginx-gateway:8080/nginx-demo
nginx:
build:
context: ./nginx
args:
download_key: ${download_key}
agent_key: ${agent_key}
nginx_version: '1.21.6'
networks:
nginxmesh:
aliases:
- nginx-gateway
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/instana-config.json:/etc/instana-config.json
# Instana developers only: Include the following lines to override the nginx module, for local testing
#- ./nginx/ngx_http_opentracing_module.so:/opt/instana/nginx/ngx_http_opentracing_module.so:ro
#- ./nginx/ngx_http_opentracing_module.so:/usr/lib/nginx/modules/ngx_http_opentracing_module.so:ro
expose:
- "8080"
server-app:
build:
context: ./server-app
networks:
nginxmesh:
aliases:
- server-app
environment:
- INSTANA_DEV=1
- SERVER_PORT=8080
expose:
- "8080"
agent:
image: icr.io/instana/agent
pid: "host"
privileged: true
volumes:
- /var/run:/var/run
- /run:/run
# 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:
nginxmesh:
aliases:
- instana-agent
environment:
- INSTANA_AGENT_ENDPOINT=${agent_endpoint:-ingress-red-saas.instana.io}
- INSTANA_AGENT_ENDPOINT_PORT=${agent_endpoint_port:-443}
- INSTANA_DOWNLOAD_KEY=${download_key}
- INSTANA_AGENT_KEY=${agent_key}
- INSTANA_AGENT_ZONE=${agent_zone:-nginx-tracing-demo}
healthcheck:
test: ["CMD", "curl", "localhost:42699"]
interval: 8s
timeout: 10s
retries: 5
expose:
- "42699"
networks:
nginxmesh: {}