-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yaml
58 lines (57 loc) · 1.66 KB
/
docker-compose.yaml
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
version: "3.9"
services:
agent:
image: datadog/agent:latest
ports:
- "8126:8126"
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- /proc/:/host/proc/:ro
- /sys/fs/cgroup/:/host/sys/fs/cgroup:ro
environment:
- DD_APM_ENABLED=true
- DD_APM_NON_LOCAL_TRAFFIC=true
- DD_API_KEY=${DD_API_KEY}
- DD_SITE=${DD_SITE:-datadoghq.com}
- DD_ENV=threat-emulation-local
juiceshop:
image: ghcr.io/datadog/juice-shop
environment:
- DD_AGENT_HOST=agent
- DD_TRACE_AGENT_PORT=8126
- DD_TRACER_ENABLED=true
- DD_APPSEC_ENABLED=true
- DD_SERVICE=${DD_SERVICE:-appsec-threat-emulation}
- DD_TRACE_DEBUG=true
depends_on:
db:
condition: service_healthy
agent:
condition: service_healthy
ports:
- 8081:3000
db:
image: mysql:8.0
platform: linux/amd64
# NOTE: use of "mysql_native_password" is not recommended: https://dev.mysql.com/doc/refman/8.0/en/upgrading-from-previous-series.html#upgrade-caching-sha2-password
# (this is just an example, not intended to be a production configuration)
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
MYSQL_ROOT_PASSWORD: wingsuit
MYSQL_DATABASE: juiceshop
MYSQL_USER: juiceshop
MYSQL_PASSWORD: juiceshop-pwd
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
timeout: 2s
retries: 10
cli:
build:
context: cli
dockerfile: Dockerfile
tty: true
container_name: appsec-threat-emulation
networks:
default:
name: appsec-threat-emulation-network