forked from pointblank-club/oaas
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
100 lines (93 loc) · 2.5 KB
/
docker-compose.yml
File metadata and controls
100 lines (93 loc) · 2.5 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
services:
backend:
build:
context: ./cmd/llvm-obfuscator
dockerfile: Dockerfile.backend
image: pb-obfuscator-backend:latest
platform: linux/amd64
environment:
- OBFUSCATOR_DISABLE_AUTH=true
- GHIDRA_LIFTER_URL=http://ghidra-lifter:5000
- MCSEMA_LIFT_URL=http://mcsema-lift:5002
volumes:
- ./cmd/llvm-obfuscator/reports:/app/reports
- ./cmd/llvm-obfuscator/binaries:/app/binaries
- ./binary_obfuscation_pipeline:/app/binary_obfuscation_pipeline
- binary_jobs:/app/binary_jobs
expose:
- "8000"
healthcheck:
test: ["CMD", "curl", "-fsS", "http://localhost:8000/api/health"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
depends_on:
ghidra-lifter:
condition: service_healthy
mcsema-lift:
condition: service_healthy
networks:
- obfuscator-network
ghidra-lifter:
build:
context: ./binary_obfuscation_pipeline/mcsema_impl/ghidra_lifter
dockerfile: Dockerfile
image: pb-ghidra-lifter:latest
volumes:
- ./cmd/llvm-obfuscator/reports:/app/reports
- ./cmd/llvm-obfuscator/binaries:/app/binaries
- binary_jobs:/app/binary_jobs
expose:
- "5000"
ports:
- "5001:5000"
healthcheck:
test: ["CMD", "curl", "-fsS", "http://localhost:5000/health"]
interval: 10s
timeout: 10s
retries: 5
start_period: 60s
networks:
- obfuscator-network
mcsema-lift:
# Build using LLVM 9 base - LLVM 11 has CallSite bug that causes segfaults
build:
context: ./binary_obfuscation_pipeline/mcsema_impl/mcsema_lift
dockerfile: Dockerfile
image: pb-mcsema-lift:latest
platform: linux/amd64
volumes:
- ./cmd/llvm-obfuscator/reports:/app/reports
- ./cmd/llvm-obfuscator/binaries:/app/binaries
- binary_jobs:/app/binary_jobs
expose:
- "5002"
ports:
- "5002:5002"
healthcheck:
test: ["CMD", "curl", "-fsS", "http://localhost:5002/health"]
interval: 10s
timeout: 10s
retries: 5
start_period: 30s
networks:
- obfuscator-network
frontend:
build:
context: ./cmd/llvm-obfuscator/frontend
dockerfile: Dockerfile.frontend
image: pb-obfuscator-frontend:latest
ports:
- "8080:4666"
depends_on:
backend:
condition: service_healthy
networks:
- obfuscator-network
volumes:
binary_jobs:
driver: local
networks:
obfuscator-network:
driver: bridge