-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.mitm.yml
60 lines (55 loc) · 1.62 KB
/
docker-compose.mitm.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
# Only used for dev atm!
version: "3"
services:
## Running in Docker slows down development a lot, so this is only kept for reference here.
# nextjs:
# image: "node:18"
# ports:
# - "3000:3000"
# volumes:
# - "./:/usr/src/app:delegated"
# - "mitmproxy-config:/mitmproxy/"
# working_dir: "/usr/src/app"
# command: ["sh", "-c", "yarn && yarn dev:mitmproxy"]
# depends_on:
# - db
# environment:
# DATABASE_URL: "postgres://postgres:password@db:5432/template1"
# HTTP_PROXY: "http://mitmweb:8080"
# NODE_EXTRA_CA_CERTS: "/mitmproxy/mitmproxy-ca-cert.pem"
# NO_PROXY: "localhost,127.0.0.1"
# restart: "always"
visualize:
image: "ghcr.io/visualize-admin/visualization-tool/visualization-tool:release"
ports:
- "3000:3000"
volumes:
- "mitmproxy-config:/mitmproxy/"
working_dir: "/usr/src/app"
depends_on:
- db
- mitmweb
environment:
DATABASE_URL: "postgres://postgres:password@db:5432/template1"
HTTP_PROXY: "http://mitmweb:8080"
NODE_EXTRA_CA_CERTS: "/mitmproxy/mitmproxy-ca-cert.pem"
NO_PROXY: "localhost,127.0.0.1"
restart: "always"
db:
image: "postgres:11"
ports:
- "5432:5432"
environment:
POSTGRES_DB: "visualization_tool"
POSTGRES_PASSWORD: "password"
mitmweb:
image: "mitmproxy/mitmproxy:latest"
ports:
- 8080:8080
- 8081:8081
volumes:
- "mitmproxy-config:/root/.mitmproxy/"
user: root:root
command: ["sh", "-c", "cd && pwd && whoami && mitmweb --web-host 0.0.0.0 --no-web-open-browser"]
volumes:
mitmproxy-config: