From 1a318948a884cde6f0ca924303d8cd46ff4d9a67 Mon Sep 17 00:00:00 2001 From: thomas Date: Sun, 10 Aug 2025 21:43:10 +0000 Subject: [PATCH] =?UTF-8?q?zap/docker-compose.yml=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zap/docker-compose.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 zap/docker-compose.yml diff --git a/zap/docker-compose.yml b/zap/docker-compose.yml new file mode 100644 index 0000000..448244e --- /dev/null +++ b/zap/docker-compose.yml @@ -0,0 +1,19 @@ +services: + zap: + # Use the official stable image for ZAP from Docker Hub. + image: owasp/zap2docker-stable + container_name: owasp-zap + ports: + # Map the host ports to the container ports. + - "${ZAP_UI_PORT}:8080" + - "${ZAP_API_PORT}:8090" + volumes: + # Mount the named volume to the ZAP working directory. + - ${ZAP_VOLUME_NAME}:/zap/wrk + environment: + # Pass environment variables to the container. + - ZAP_AUTH_API_KEY=${ZAP_API_KEY} + # This command starts ZAP in a daemon mode. + command: "zap.sh -daemon -port 8080 -config api.key=${ZAP_API_KEY}" + # Automatically restart the container if it stops. + restart: always \ No newline at end of file