From 7f6eeb4de86196277ce1b2315f422fbe6ec54517 Mon Sep 17 00:00:00 2001 From: thomas Date: Sun, 10 Aug 2025 22:08:36 +0000 Subject: [PATCH] zap/docker-compose.yml aktualisiert --- zap/docker-compose.yml | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/zap/docker-compose.yml b/zap/docker-compose.yml index ce0a21e..27fcf4a 100644 --- a/zap/docker-compose.yml +++ b/zap/docker-compose.yml @@ -1,18 +1,14 @@ services: zap: - # Use the official stable image for ZAP from Docker Hub. - image: zaproxy/zap-stable - container_name: zap + image: ghcr.io/zaproxy/zaproxy:stable + container_name: zap-webswing ports: - # Map the host ports to the container ports. - - "${ZAP_UI_PORT}:8080" + - "${ZAP_GUI_PORT}:8080" # Webswing GUI + - "${ZAP_API_PORT}:9090" # ZAP API volumes: - # Mount the named volume to the ZAP working directory. - - ${ZAP_VOLUME_NAME}:/home/zap/.ZAP + - "${ZAP_WORK_DIR}:/zap/wrk:rw" environment: - # Pass environment variables to the container. - - ZAP_AUTH_API_KEY=${ZAP_API_KEY} - # This command starts ZAP in a daemon mode. - command: "zap-webswing.sh -port 8080 -config api.key=${ZAP_API_KEY}" - # Automatically restart the container if it stops. - restart: always \ No newline at end of file + - ZAP_WEBSWING_OPTS=-host 0.0.0.0 -port 8080 + user: zap + command: zap-webswing.sh + restart: unless-stopped \ No newline at end of file