Skip to content

Commit 43f0747

Browse files
feat(dev): add mitmproxy configuration to docker-compose
1 parent eafbd4b commit 43f0747

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

docker-compose.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,15 @@ services:
3232
timeout: 1s
3333
retries: 5
3434

35+
mitmproxy:
36+
<< : *restart_policy
37+
image: mitmproxy/mitmproxy:latest
38+
hostname: mitmproxy
39+
command: ["mitmweb", "--web-host", "0.0.0.0", "--set", "web_password=monty-proxy"]
40+
ports:
41+
- "127.0.0.1:8080:8080"
42+
- "127.0.0.1:8081:8081"
43+
3544
snekbox:
3645
<< : *restart_policy
3746
image: ghcr.io/onerandomusername/snekbox:latest
@@ -61,12 +70,15 @@ services:
6170
restart: true
6271
redis:
6372
condition: service_healthy
73+
mitmproxy:
74+
condition: service_started
6475

6576
environment:
6677
- REDIS_URI=redis://redis:6379
6778
- DB_BIND=postgresql+asyncpg://monty:monty@postgres:5432/monty
6879
- USE_FAKEREDIS=false
6980
- SNEKBOX_URL=http://snekbox:8060/
81+
- BOT_PROXY_URL=http://mitmproxy:8080/
7082

7183
env_file:
7284
- .env

0 commit comments

Comments
 (0)