-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
56 lines (52 loc) · 1.68 KB
/
docker-compose.yaml
File metadata and controls
56 lines (52 loc) · 1.68 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
version: "3.2"
services:
# The C++ proxy that sits in front of the C++ server.
proxy:
build:
context: .
dockerfile: Dockerfile
command: /dd-trace-cpp/dist/bin/http-proxy-example
ports:
- "127.0.0.1:8000:80"
environment:
- DD_AGENT_HOST=datadog-agent
- DD_SERVICE=dd-trace-cpp-http-server-example-proxy
depends_on:
- datadog-agent
# The C++ HTTP server to which we added Datadog tracing
server:
build:
context: .
dockerfile: Dockerfile
command: /dd-trace-cpp/dist/bin/http-server-example
environment:
# This will override any value of `datadog::tracing::TracerConfig`'s
# `.agent.url` in `server.cpp`.
- DD_AGENT_HOST=datadog-agent
depends_on:
- datadog-agent
# A Python HTTP server that acts as a database backed by SQLite.
# It also has Datadog tracing.
database:
build:
context: ./database
dockerfile: ./Dockerfile
environment:
- DD_AGENT_HOST=datadog-agent
- DD_SERVICE=dd-trace-cpp-http-server-example-database
depends_on:
- datadog-agent
# The Datadog trace agent
datadog-agent:
image: datadog/agent
volumes:
- '/var/run/docker.sock:/var/run/docker.sock:ro'
- '/run/user:/run/user:ro'
- '/proc/:/host/proc/:ro'
- '/sys/fs/cgroup/:/host/sys/fs/cgroup:ro'
environment:
- DD_API_KEY
- DD_APM_ENABLED=true
- DD_LOG_LEVEL=ERROR
- DOCKER_HOST
- DD_SITE