forked from jeffkwiat/datadog-node-express
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose-test_db.yml
47 lines (44 loc) · 1.04 KB
/
docker-compose-test_db.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
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=1ed1eba742b84b49409e3a8e2885a779
- DD_LOGS_ENABLED=true
- DD_PROCESS_AGENT_ENABLED=true
- DD_HOSTNAME=node-web-app
- DD_LOG_LEVEL=debug
- DD_APM_ENABLED=true
- SD_BACKEND=docker
- NON_LOCAL_TRAFFIC=false
- MAX_TRACES_PER_SECOND=1
mongo:
image: test-db/node_app:version1
ports:
- "27017:27017"
hostname: mongo
container_name: demo-mongo
environment:
- MONGO_INITDB_DATABASE=demo-mongo
redis:
image: redis:4.0.10
ports:
- "6379:6379"
hostname: redis
container_name: demo-redis
demo:
build:
context: .
ports:
- "3000:3000"
container_name: demo-app
links:
- agent
- mongo
- redis