zap/docker-compose.yml aktualisiert
This commit is contained in:
@@ -1,19 +1,18 @@
|
|||||||
services:
|
services:
|
||||||
zap:
|
zap:
|
||||||
# Use the official stable image for ZAP from Docker Hub.
|
# Use the official stable image for ZAP from Docker Hub.
|
||||||
image: owasp/zap2docker-stable
|
image: zaproxy/zap-stable
|
||||||
container_name: owasp-zap
|
container_name: zap
|
||||||
ports:
|
ports:
|
||||||
# Map the host ports to the container ports.
|
# Map the host ports to the container ports.
|
||||||
- "${ZAP_UI_PORT}:8080"
|
- "${ZAP_UI_PORT}:8080"
|
||||||
- "${ZAP_API_PORT}:8090"
|
|
||||||
volumes:
|
volumes:
|
||||||
# Mount the named volume to the ZAP working directory.
|
# Mount the named volume to the ZAP working directory.
|
||||||
- ${ZAP_VOLUME_NAME}:/zap/wrk
|
- ${ZAP_VOLUME_NAME}:/home/zap/.ZAP
|
||||||
environment:
|
environment:
|
||||||
# Pass environment variables to the container.
|
# Pass environment variables to the container.
|
||||||
- ZAP_AUTH_API_KEY=${ZAP_API_KEY}
|
- ZAP_AUTH_API_KEY=${ZAP_API_KEY}
|
||||||
# This command starts ZAP in a daemon mode.
|
# This command starts ZAP in a daemon mode.
|
||||||
command: "zap.sh -daemon -port 8080 -config api.key=${ZAP_API_KEY}"
|
command: "zap-webswing.sh -port 8080 -config api.key=${ZAP_API_KEY}"
|
||||||
# Automatically restart the container if it stops.
|
# Automatically restart the container if it stops.
|
||||||
restart: always
|
restart: always
|
||||||
Reference in New Issue
Block a user