forked from decompiler-explorer/decompiler-explorer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
233 lines (210 loc) · 6.92 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
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
version: '3.8'
x-decompiler:
&default-decompiler-options
init: true
environment:
- SERVER=${EXPLORER_URL:-http://explorer:8000}
- DEBUG=${DEBUG:-0}
networks:
- backend_net
command: [
"--timeout", "${DECOMPILER_TIMEOUT:-120}",
"--extended-timeout", "${DECOMPILER_EXTENDED_TIMEOUT:-900}",
"--mem-limit-hard", "${DECOMPILER_MEM_LIMIT_HARD:-10000000000}",
"--mem-limit-soft", "${DECOMPILER_MEM_LIMIT_SOFT:-10000000000}"
]
secrets:
- worker_auth_token
deploy:
replicas: 1
services:
traefik:
image: traefik:v2.6
init: true
networks:
- backend_net
- default
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
ports:
- target: 80
published: 80
mode: host
protocol: tcp
- target: 443
published: 443
mode: host
protocol: tcp
- "8080:8080"
command:
- --providers.docker=true
- --providers.docker.exposedbydefault=false
- --providers.docker.swarmMode=true
- --entrypoints.web.address=:80
- --entrypoints.websecure.address=:443
- --entrypoints.web.http.redirections.entryPoint.to=websecure
- --entrypoints.web.http.redirections.entryPoint.scheme=https
- --entrypoints.web.http.redirections.entrypoint.permanent=true
- --accesslog
- --log
- --api
- --api.insecure=true
- --api.dashboard=true
deploy:
replicas: 1
placement:
constraints:
- "node.role==manager"
labels:
- traefik.enable=true
- traefik.http.services.traefik.loadbalancer.server.port=8080
- traefik.http.middlewares.https-redirect.redirectscheme.scheme=https
- traefik.http.middlewares.https-redirect.redirectscheme.permanent=true
- traefik.http.middlewares.limit.buffering.maxRequestBodyBytes=${MAX_REQUEST_SIZE:-2000000}
- traefik.http.middlewares.limit.buffering.memRequestBodyBytes=2000000
database:
image: postgres:14
environment:
- POSTGRES_PASSWORD_FILE=/run/secrets/db_superuser_pass
- PGDATA=/var/lib/postgresql/data/pgdata
secrets:
- db_superuser_pass
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres", "-d", "postgres"]
volumes:
- ./db_data:/var/lib/postgresql/data/
networks:
- backend_net
deploy:
replicas: 1
placement:
constraints:
- "node.role==manager"
memcached:
image: memcached:1.6
networks:
- backend_net
deploy:
replicas: 1
placement:
constraints:
- "node.role==manager"
explorer:
depends_on:
- database
- memcached
init: true
build: .
image: ${IMAGE_NAME:-decompiler_explorer}:explorer
environment:
- PYTHONUNBUFFERED=1
- DJANGO_SETTINGS_MODULE=decompiler_explorer.settings.docker
- DEBUG=${DEBUG:-0}
networks:
- backend_net
secrets:
- db_superuser_pass
- worker_auth_token
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000"]
deploy:
replicas: 1
placement:
constraints:
- "node.role==manager"
labels:
- traefik.enable=true
- traefik.http.services.explorer.loadbalancer.server.port=8000
- traefik.http.routers.explorer.rule=Host(`${DOMAIN:-dce.localhost}`)
- traefik.http.routers.explorer.entrypoints=websecure
- traefik.http.routers.explorer.tls=true
- traefik.http.routers.explorer.middlewares=limit@docker
# Decompilers
binja:
<<: *default-decompiler-options
image: ${IMAGE_NAME:-decompiler_explorer}:binja
build:
context: runners/decompiler
target: binja
ghidra:
<<: *default-decompiler-options
image: ${IMAGE_NAME:-decompiler_explorer}:ghidra
build:
context: runners/decompiler
target: ghidra
angr:
<<: *default-decompiler-options
image: ${IMAGE_NAME:-decompiler_explorer}:angr
build:
context: runners/decompiler
target: angr
snowman:
<<: *default-decompiler-options
image: ${IMAGE_NAME:-decompiler_explorer}:snowman
build:
context: runners/decompiler
target: snowman
retdec:
<<: *default-decompiler-options
image: ${IMAGE_NAME:-decompiler_explorer}:retdec
build:
context: runners/decompiler
target: retdec
command: [
"--timeout", "${DECOMPILER_TIMEOUT:-120}",
"--extended-timeout", "${DECOMPILER_EXTENDED_TIMEOUT:-900}",
# Do not specify hard limit #12
"--mem-limit-soft", "${DECOMPILER_MEM_LIMIT_SOFT:-10000000000}"
]
recstudio:
<<: *default-decompiler-options
image: ${IMAGE_NAME:-decompiler_explorer}:recstudio
build:
context: runners/decompiler
target: recstudio
boomerang:
<<: *default-decompiler-options
image: ${IMAGE_NAME:-decompiler_explorer}:boomerang
build:
context: runners/decompiler
target: boomerang
reko:
<<: *default-decompiler-options
image: ${IMAGE_NAME:-decompiler_explorer}:reko
build:
context: runners/decompiler
target: reko
hexrays:
<<: *default-decompiler-options
image: ${IMAGE_NAME:-decompiler_explorer}:hexrays
build:
context: runners/decompiler
target: hexrays
dewolf:
<<: *default-decompiler-options
image: ${IMAGE_NAME:-decompiler_explorer}:dewolf
build:
context: runners/decompiler
target: dewolf
relyze:
<<: *default-decompiler-options
image: ${IMAGE_NAME:-decompiler_explorer}:relyze
build:
context: runners/decompiler
target: relyze
revng:
<<: *default-decompiler-options
image: ${IMAGE_NAME:-decompiler_explorer}:revng
build:
context: runners/decompiler
target: revng
networks:
backend_net:
volumes:
staticfiles:
mediafiles:
secrets:
db_superuser_pass:
file: ./secrets/db_superuser_pass
worker_auth_token:
file: ./secrets/worker_auth_token