-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
49 lines (43 loc) · 1.1 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
version: '3'
services:
dvwa:
image: cytopia/dvwa:php-${PHP_VERSION:-7.2}
restart: unless-stopped
ports:
- "${LISTEN_PORT:-8000}:80"
- "${SHELL_PORT:-4444}:4444"
networks:
- frontend
- backend
environment:
- RECAPTCHA_PRIV_KEY=${RECAPTCHA_PRIV_KEY:-}
- RECAPTCHA_PUB_KEY=${RECAPTCHA_PUB_KEY:-}
- SECURITY_LEVEL=${SECURITY_LEVEL:-medium}
- PHPIDS_ENABLED=${PHPIDS_ENABLED:-0}
- PHPIDS_VERBOSE=${PHPIDS_VERBOSE:-0}
- PHP_DISPLAY_ERRORS=${PHP_DISPLAY_ERRORS:-0}
- MYSQL_HOSTNAME=${MYSQL_HOSTNAME:-mysql}
- MYSQL_DATABASE=${MYSQL_DATABASE:-dvwa}
- MYSQL_USERNAME=${MYSQL_USERNAME:-default}
- MYSQL_PASSWORD=${MYSQL_PASSWORD:-secret}
mysql:
image: mysql:5.6
hostname: mysql
volumes:
- dvwa_data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: dvwa
MYSQL_USER: default
MYSQL_PASSWORD: secret
restart: unless-stopped
networks:
- backend
networks:
frontend:
driver: bridge
backend:
driver: bridge
volumes:
dvwa_data: