zap/docker-compose.yml aktualisiert

This commit is contained in:
2025-08-10 22:08:36 +00:00
parent 9c50301df2
commit 7f6eeb4de8

View File

@@ -1,18 +1,14 @@
services: services:
zap: zap:
# Use the official stable image for ZAP from Docker Hub. image: ghcr.io/zaproxy/zaproxy:stable
image: zaproxy/zap-stable container_name: zap-webswing
container_name: zap
ports: ports:
# Map the host ports to the container ports. - "${ZAP_GUI_PORT}:8080" # Webswing GUI
- "${ZAP_UI_PORT}:8080" - "${ZAP_API_PORT}:9090" # ZAP API
volumes: volumes:
# Mount the named volume to the ZAP working directory. - "${ZAP_WORK_DIR}:/zap/wrk:rw"
- ${ZAP_VOLUME_NAME}:/home/zap/.ZAP
environment: environment:
# Pass environment variables to the container. - ZAP_WEBSWING_OPTS=-host 0.0.0.0 -port 8080
- ZAP_AUTH_API_KEY=${ZAP_API_KEY} user: zap
# This command starts ZAP in a daemon mode. command: zap-webswing.sh
command: "zap-webswing.sh -port 8080 -config api.key=${ZAP_API_KEY}" restart: unless-stopped
# Automatically restart the container if it stops.
restart: always