Skip to content

Commit

Permalink
Merge pull request #1316 from Rdataflow/feat-docker-compose-mitm-inspect
Browse files Browse the repository at this point in the history
Feature: add SPARQL traffic inspection
  • Loading branch information
bprusinowski authored Jan 24, 2024
2 parents 2aa07b9 + b8c65d3 commit 8fe1e8b
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 2 deletions.
60 changes: 60 additions & 0 deletions docker-compose.mitm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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:
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: "3"
services:
## Running in Docker slows down development a lot, so this is only kept for reference here.
# nextjs:
# image: "node:12"
# image: "node:18"
# ports:
# - "3000:3000"
# volumes:
Expand All @@ -13,7 +13,7 @@ services:
# depends_on:
# - db
# environment:
# DATABASE_URL: "postgres://postgres@db:5432/template1"
# DATABASE_URL: "postgres://postgres:password@db:5432/template1"
# restart: "always"
db:
image: "postgres:11"
Expand Down

1 comment on commit 8fe1e8b

@vercel
Copy link

@vercel vercel bot commented on 8fe1e8b Jan 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

visualization-tool – ./

visualization-tool-ixt1.vercel.app
visualization-tool-alpha.vercel.app
visualization-tool-git-main-ixt1.vercel.app

Please sign in to comment.