forked from DataDog/dd-py-tracing-workshop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
51 lines (51 loc) · 1.47 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
version: '3'
services:
agent:
image: "datadog/agent:latest"
environment:
- DD_API_KEY
# - DD_APM_ENABLED=true # STEP 01
# - DD_APM_NON_LOCAL_TRAFFIC=TRUE # STEP 01
# - DD_LOGS_ENABLED=true # STEP 04
# - DD_LOGS_CONFIG_CONTAINER_COLLECT_ALL=true # STEP 04
# - DD_AC_EXCLUDE=name:agent # STEP 04
# - DD_APM_ANALYZED_SPANS=cafe|flask.request=1,taster|flask.request=1 # STEP 05
# ports: # STEP 01
# - "8126:8126" # STEP 01
# volumes: # STEP 01
# - /var/run/docker.sock:/var/run/docker.sock:ro # STEP 01
# - /proc/:/host/proc/:ro # STEP 01
# - /sys/fs/cgroup/:/host/sys/fs/cgroup:ro # STEP 01
# - /opt/datadog-agent/run:/opt/datadog-agent/run:rw # STEP 04
redis:
image: "redis:4.0.13-alpine"
cafe:
# labels: # STEP 04
# com.datadoghq.ad.logs: '[{"source": "python", "service": "cafe"}]' # STEP 04
environment:
- FLASK_APP=cafe.py
- FLASK_DEBUG=1
build: .
command: flask run --port=5000 --host=0.0.0.0
ports:
- "5000:5000"
volumes:
- "./app:/app"
depends_on:
- agent
- redis
taster:
# labels: # STEP 04
# com.datadoghq.ad.logs: '[{"source": "python", "service": "taster"}]' # STEP 04
environment:
- FLASK_APP=taster.py
- FLASK_DEBUG=1
build: .
command: flask run --port=5001 --host=0.0.0.0
ports:
- "5001:5001"
volumes:
- "./app:/app"
depends_on:
- agent
- redis