-
Notifications
You must be signed in to change notification settings - Fork 395
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
76 lines (72 loc) · 2.47 KB
/
docker-compose.yml
File metadata and controls
76 lines (72 loc) · 2.47 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
version: "3.8"
services:
recorder:
image: ${PYTHON_BASE}
command: /bin/sh -c 'pip install protobuf && ./recorder.py'
volumes:
- ./recorder:/recorder
working_dir: /recorder
environment:
SERVER_PORT: 8080
expose:
- 8080
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080"]
interval: 10s
timeout: 5s
retries: 3
forwarder:
image: datadog-log-forwarder:${PYTHON_RUNTIME}
command: lambda_function.lambda_handler
environment:
AWS_ACCOUNT_ID: ${AWS_ACCOUNT_ID:-0000000000}
AWS_ACCESS_KEY_ID: "${AWS_ACCESS_KEY_ID}"
AWS_SECRET_ACCESS_KEY: "${AWS_SECRET_ACCESS_KEY}"
AWS_SECURITY_TOKEN: "${AWS_SECURITY_TOKEN}"
AWS_SESSION_TOKEN: "${AWS_SESSION_TOKEN}"
AWS_DEFAULT_REGION: us-east-1
DD_LOG_LEVEL: ${LOG_LEVEL:-info}
DD_API_KEY: abcdefghijklmnopqrstuvwxyz012345 # Must be 32 characters exactly
DD_URL: recorder # Used for logs intake
DD_PORT: 8080 # API port to use
DD_SITE: datadog.com
DD_API_URL: http://recorder:8080
DD_LOGS_INTAKE_URL: recorder:8080
DD_TRACE_INTAKE_URL: http://recorder:8080
DD_NO_SSL: "true"
DD_SKIP_SSL_VALIDATION: "true"
DD_USE_COMPRESSION: "false"
DD_ADDITIONAL_TARGET_LAMBDAS: "${EXTERNAL_LAMBDAS}"
DD_S3_BUCKET_NAME: "${DD_S3_BUCKET_NAME}"
DD_FETCH_LAMBDA_TAGS: "${DD_FETCH_LAMBDA_TAGS:-false}"
DD_FETCH_LOG_GROUP_TAGS: "${DD_FETCH_LOG_GROUP_TAGS:-false}"
DD_FETCH_STEP_FUNCTIONS_TAGS: "${DD_FETCH_STEP_FUNCTIONS_TAGS:-false}"
DD_STORE_FAILED_EVENTS: "false"
DD_TRACE_ENABLED: "true"
expose:
- 8080
depends_on:
recorder:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/2015-03-31/functions/function/invocations"]
interval: 10s
timeout: 5s
retries: 3
tester:
image: ${PYTHON_BASE}
command: /bin/sh -c 'pip install "deepdiff<6" && python -m unittest discover'
volumes:
- ./tester:/tester
- ${SNAPSHOTS_DIR_NAME}:/snapshots
working_dir: /tester
environment:
RECORDER_URL: http://recorder:8080/recording
FORWARDER_URL: http://forwarder:8080/2015-03-31/functions/function/invocations
UPDATE_SNAPSHOTS: ${UPDATE_SNAPSHOTS:-false}
SNAPSHOTS_DIR_NAME: ${SNAPSHOTS_DIR_NAME}
depends_on:
forwarder:
condition: service_healthy
recorder:
condition: service_healthy