test: use mitmproxy

This commit is contained in:
janskiba 2024-11-12 10:00:13 +00:00
parent 122ff16bb1
commit 31aeb6c619
1 changed files with 3 additions and 11 deletions

View File

@ -32,19 +32,11 @@ services:
forward_proxy:
container_name: bridgehead-forward-proxy
image: docker.verbis.dkfz.de/cache/samply/bridgehead-forward-proxy:latest
environment:
HTTPS_PROXY: ${HTTPS_PROXY_URL}
HTTPS_PROXY_USERNAME: ${HTTPS_PROXY_USERNAME}
HTTPS_PROXY_PASSWORD: ${HTTPS_PROXY_PASSWORD}
tmpfs:
- /var/log/squid
- /var/spool/squid
volumes:
- /etc/bridgehead/trusted-ca-certs:/docker/custom-certs/:ro
image: mitmproxy/mitmproxy
command: ["mitmweb", "-k", "--mode", "upstream:${HTTPS_PROXY}", "--listen-port", "3128"]
healthcheck:
# Wait 1s before marking this service healthy. Required for the oauth2-proxy to talk to the OIDC provider on startup which will fail if the forward proxy is not started yet.
test: ["CMD", "sleep", "1"]
test: ["CMD", "sleep", "10"]
landing:
container_name: bridgehead-landingpage