forked from DataDog/dd-trace-py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
201 lines (195 loc) · 6.78 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
version: "3"
# remember to use this compose file __ONLY__ for development/testing purposes
services:
elasticsearch:
image: elasticsearch:7.17.13
environment:
- discovery.type=single-node
- xpack.security.enabled=false
ports:
- "127.0.0.1:9200:9200"
opensearch:
image: opensearchproject/opensearch:1.3.6
environment:
- "DISABLE_SECURITY_PLUGIN=true"
- "discovery.type=single-node"
ports:
- "127.0.0.1:9201:9200"
cassandra:
image: cassandra:3.11.7
environment:
- MAX_HEAP_SIZE=512M
- HEAP_NEWSIZE=256M
ports:
- "127.0.0.1:9042:9042"
consul:
image: consul:1.6.0
ports:
- "127.0.0.1:8500:8500"
postgres:
image: postgres:12-alpine
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_USER=postgres
- POSTGRES_DB=postgres
ports:
- "127.0.0.1:5432:5432"
mariadb:
image: mariadb:lts
environment:
- MYSQL_ROOT_PASSWORD=example
- MYSQL_DATABASE=test
- MYSQL_USER=test
- MYSQL_PASSWORD=test
ports:
- "127.0.0.1:3306:3306"
mysql:
image: mysql:5.7
platform: linux/amd64
environment:
- MYSQL_ROOT_PASSWORD=admin
- MYSQL_PASSWORD=test
- MYSQL_USER=test
- MYSQL_DATABASE=test
ports:
- "127.0.0.1:3306:3306"
redis:
image: redis:4.0-alpine
ports:
- "127.0.0.1:6379:6379"
kafka:
image: bitnami/kafka:3.5.1-debian-11-r3
ports:
- "127.0.0.1:29092:29092"
environment:
- ALLOW_PLAINTEXT_LISTENER=yes
- KAFKA_CFG_LISTENERS=PLAINTEXT://:9092,CONTROLLER://:9093,EXTERNAL://:29092
- KAFKA_CFG_ADVERTISED_LISTENERS=PLAINTEXT://kafka:9092,EXTERNAL://localhost:29092
- KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=CONTROLLER:PLAINTEXT,EXTERNAL:PLAINTEXT,PLAINTEXT:PLAINTEXT
- KAFKA_CFG_BROKER_ID=1
- KAFKA_CFG_INTER_BROKER_LISTENER_NAME=PLAINTEXT
- KAFKA_CFGOFFSETS_TOPIC_REPLICATION_FACTOR=1
rediscluster:
platform: linux/amd64
image: grokzen/redis-cluster:6.2.0
environment:
- IP=0.0.0.0
ports:
- "127.0.0.1:7000:7000"
- "127.0.0.1:7001:7001"
- "127.0.0.1:7002:7002"
- "127.0.0.1:7003:7003"
- "127.0.0.1:7004:7004"
- "127.0.0.1:7005:7005"
mongo:
image: mongo:3.6
ports:
- "127.0.0.1:27017:27017"
memcached:
image: memcached:1.5-alpine
ports:
- "127.0.0.1:11211:11211"
moto:
# container that executes mocked AWS services; this is a custom
# build that runs all of them in a single container. It is built
# using this fork: https://github.com/palazzem/moto/tree/palazzem/docker-service
image: datadog/docker-library:moto_1_0_1
ports:
- "127.0.0.1:5000:5000"
- "127.0.0.1:5001:5001"
- "127.0.0.1:5002:5002"
- "127.0.0.1:5003:5003"
- "127.0.0.1:5004:5004"
- "127.0.0.1:5005:5005"
rabbitmq:
image: rabbitmq:3.7-alpine
ports:
- "127.0.0.1:5672:5672"
ddagent:
image: datadog/agent:latest
environment:
- DD_HOSTNAME=github-actions-worker
- DD_BIND_HOST=0.0.0.0
- DD_REMOTE_CONFIGURATION_ENABLED=true
- DD_SITE=${DD_SITE-datadoghq.com}
- DD_API_KEY=${DD_API_KEY-invalid_but_this_is_fine}
- DD_REMOTE_CONFIGURATION_KEY=${DD_REMOTE_CONFIGURATION_KEY-invalid_but_this_is_fine}
- DD_REMOTE_CONFIGURATION_REFRESH_INTERVAL=5s
- DD_APM_RECEIVER_SOCKET=/tmp/ddagent/trace.sock
- DD_DOGSTATSD_NON_LOCAL_TRAFFIC=true
ports:
- 8126:8126
- 8125:8125/udp
volumes:
- ddagent:/tmp/ddagent:rw
testagent:
image: ghcr.io/datadog/dd-apm-test-agent/ddapm-test-agent:v1.17.0
ports:
- "127.0.0.1:9126:8126"
volumes:
- ./tests/snapshots:/snapshots
environment:
- LOG_LEVEL=WARNING
- SNAPSHOT_DIR=/snapshots
- SNAPSHOT_CI=0
- DD_POOL_TRACE_CHECK_FAILURES=true
- DD_DISABLE_ERROR_RESPONSES=true
- ENABLED_CHECKS=trace_content_length,trace_stall,meta_tracer_version_header,trace_count_header,trace_peer_service,trace_dd_service
- SNAPSHOT_IGNORED_ATTRS=span_id,trace_id,parent_id,duration,start,metrics.system.pid,metrics.system.process_id,metrics.process_id,meta.runtime-id,meta._dd.p.tid,meta.pathway.hash,metrics._dd.tracer_kr,meta._dd.parent_id
vertica:
image: vertica/vertica-ce
environment:
- VP_TEST_USER=dbadmin
- VP_TEST_PASSWORD=abc123
- VP_TEST_DATABASE=docker
ports:
- "127.0.0.1:5433:5433"
testrunner:
image: ghcr.io/datadog/dd-trace-py/testrunner@sha256:4c8afd048321e702f3605b4ae4d206fcd00e74bac708089cfe7f9c24383dc53b
command: bash
environment:
- TOX_SKIP_DIST=True
network_mode: host
userns_mode: host
working_dir: /root/project/
volumes:
- ddagent:/tmp/ddagent
- ./:/root/project
- ./.ddtox:/root/project/.tox
- ./.riot:/root/project/.riot
localstack:
image: localstack/localstack:1.4.0
ports:
- "127.0.0.1:4566:4566"
- "127.0.0.1:4571:4571"
environment:
- SERVICES=${SERVICES- }
- DEBUG=${DEBUG- }
- LAMBDA_EXECUTOR=local
- KINESIS_ERROR_PROBABILITY=${KINESIS_ERROR_PROBABILITY- }
- DOCKER_HOST=unix:///var/run/docker.sock
volumes:
- "${TMPDIR:-/var/lib/localstack}:/var/lib/localstack"
- "/var/run/docker.sock:/var/run/docker.sock"
httpbin_local:
image: kennethreitz/httpbin@sha256:2c7abc4803080c22928265744410173b6fea3b898872c01c5fd0f0f9df4a59fb
platform: linux/amd64
ports:
- "127.0.0.1:8001:80"
pygoat:
build:
context: .
dockerfile: tests/appsec/integrations/pygoat_tests/Dockerfile.pygoat.2.0.1
ports:
- "127.0.0.1:8321:8321"
environment:
- DD_APPSEC_ENABLED=true
- DD_IAST_ENABLED=true
- DD_IAST_REQUEST_SAMPLING=100
- DD_IAST_VULNERABILITIES_PER_REQUEST=100
- DD_REMOTE_CONFIGURATION_ENABLED=true
- DD_AGENT_PORT=8126
- DD_TRACE_AGENT_URL=http://testagent:8126
- _DD_APPSEC_DEDUPLICATION_ENABLED=false
volumes:
ddagent: