-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
69 lines (64 loc) · 1.54 KB
/
docker-compose.yml
File metadata and controls
69 lines (64 loc) · 1.54 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
version: '3.8'
services:
mitmproxy:
image: mitmproxy/mitmproxy:10.1.1
container_name: mitmproxy-dlp
command: [
"mitmweb",
"--web-host", "0.0.0.0",
"--mode", "regular",
"--listen-host", "0.0.0.0",
"--listen-port", "3128",
"--scripts", "/scripts/dlp_forward.py"
]
volumes:
- mitmproxy-data:/home/mitmproxy/.mitmproxy
- ./logs:/logs:rw
- ./scripts:/scripts:ro
- ./rules:/rules:ro
ports:
- "3128:3128"
- "8081:8081"
networks:
- dlp-network
restart: unless-stopped
envoy-proxy:
image: envoyproxy/envoy:v1.28-latest
container_name: envoy-dlp-proxy
volumes:
- ./config/envoy.yaml:/etc/envoy/envoy.yaml:ro
- ./lua/dlp_filter.lua:/etc/envoy/lua/dlp_filter.lua:ro
- ./logs:/var/log/envoy
- ./certs/ca.pem:/etc/envoy/certs/ca.pem:ro
- ./certs/ca.key:/etc/envoy/certs/ca.key:ro
ports:
- "8080:8080"
- "8443:8443"
- "9901:9901"
command: ["-c", "/etc/envoy/envoy.yaml", "--log-level", "info"]
networks:
- dlp-network
restart: unless-stopped
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: dlp-frontend
volumes:
- ./logs:/logs:ro
- ./certs/ca.crt:/app/public/ca.crt:ro
ports:
- "3000:3000"
environment:
- LOG_PATH=/logs
depends_on:
- envoy-proxy
- mitmproxy
networks:
- dlp-network
restart: unless-stopped
networks:
dlp-network:
driver: bridge
volumes:
mitmproxy-data: