-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
59 lines (55 loc) · 1.29 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
version: '3'
services:
agent:
image: datadog/agent:latest
container_name: agent
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /opt/datadog-agent/run:/opt/datadog-agent/run:rw
- /proc/mounts:/host/proc/mounts:ro
- /sys/fs/cgroup:/host/sys/fs/cgroup:ro
environment:
- DD_API_KEY=<api-key>
- DD_LOGS_ENABLED=true
- DD_APM_ANALYZED_SPANS=node-express|express.request=1,node-express-mongodb|mongodb.query=1
- DD_PROCESS_AGENT_ENABLED=true
- DD_HOSTNAME=node-web-app
- DD_LOG_LEVEL=trace
- DD_APM_ENABLED=true
- SD_BACKEND=docker
- NON_LOCAL_TRAFFIC=false
- MAX_TRACES_PER_SECOND=1
links:
- mongo
mongo:
image: mongo:latest
ports:
- "27017:27017"
hostname: mongo
container_name: demo-mongo
volumes:
- ./data:/data/db
redis:
image: redis:4.0.10
ports:
- "6379:6379"
hostname: redis
container_name: demo-redis
links:
- agent
demo:
build:
context: ./dockerfiles/node/
restart: always
ports:
- "3000:3000"
container_name: demo-app
links:
- redis
# scripts:
# build:
# context: ./dockerfiles/automation/
# restart: always
# container_name: demo-scripts
# links:
# - demo