forked from cytopia/docker-dvwa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
44 lines (39 loc) · 988 Bytes
/
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
---
version: '2.4'
services:
dvwa_web:
image: cytopia/dvwa:php-${PHP_VERSION:-8.1}
restart: unless-stopped
ports:
- "${LISTEN_PORT:-8000}:80"
networks:
- dvwa-net
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=dvwa_db
- MYSQL_DATABASE=dvwa
- MYSQL_USERNAME=dvwa
- MYSQL_PASSWORD=p@ssw0rd
dvwa_db:
image: mariadb:10.1
hostname: dvwa_db
volumes:
- dvwa_db_data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: rootpass
MYSQL_DATABASE: dvwa
MYSQL_USER: dvwa
MYSQL_PASSWORD: p@ssw0rd
restart: unless-stopped
networks:
- dvwa-net
networks:
dvwa-net:
driver: bridge
volumes:
dvwa_db_data: