kanghouchao/dvwa

By kanghouchao

Updated 2 months ago

DVWA for Apple Silicon (M1/M2/M3). Optimized PHP 8.2 & Apache. For security learning only.

Image
Networking
Security
Web servers
0

1.3K

kanghouchao/dvwa repository overview

DVWA - Apple Silicon (arm64) Optimized

This is a Docker image for Damn Vulnerable Web Application (DVWA), specifically built and optimized for Apple Silicon (M1/M2/M3) chips using php:8.2-apache.

Quick Start (Docker Compose)

The most reliable way to run this environment is using Docker Compose. Create a docker-compose.yml file:

services:
  app:
    image: kanghouchao/dvwa:latest
    ports:
      - "127.0.0.1:8081:80"
    environment:
      - DB_SERVER=db
      - DB_DATABASE=dvwa
      - DB_USER=root
      - DB_PASSWORD=password
      - DB_PORT=3306
    depends_on:
      - db
    networks:
      - dvwa-net

  db:
    image: mariadb:10.11
    environment:
      MYSQL_ROOT_PASSWORD: password
      MYSQL_DATABASE: dvwa
    networks:
      - dvwa-net
    healthcheck:
      test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-uroot", "-ppassword", "--skip-ssl"]
      interval: 10s
      timeout: 5s
      retries: 5

networks:
  dvwa-net:
    driver: bridge
Instructions:
  1. Run docker-compose up -d.
  2. Navigate to http://localhost:8081/setup.php.
  3. Click the "Create / Reset Database" button at the bottom.
  4. Login with default credentials:
    • Username: admin
    • Password: password

Environment Variables

  • DB_SERVER: Database host (set to db in Compose).
  • DB_DATABASE: Database name (dvwa).
  • DB_USER: Database username (use root for initialization).
  • DB_PASSWORD: Database password.
  • DB_PORT: Database port (default 3306).

⚠️ Security Warning

DO NOT deploy this image on a public-facing server. This application is intentionally vulnerable for security training and educational purposes only. Always keep the port mapping restricted to 127.0.0.1.

Credits

Tag summary

Content type

Image

Digest

sha256:41ccab942

Size

210.5 MB

Last updated

2 months ago

docker pull kanghouchao/dvwa