-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
87 lines (81 loc) · 2.13 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.14.1
container_name: elasticsearch
environment:
- bootstrap.memory_lock=true
- cluster.name=elasticlab
- discovery.type=single-node
- xpack.license.self_generated.type=basic
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- elasticsearch:/usr/share/elasticsearch/data
ports:
- 9200:9200
healthcheck:
test: curl --insecure -s https:/localhost:9200 >/dev/null; if [[ $$? == 52 ]]; then echo 0; else echo 1; fi
interval: 30s
timeout: 10s
retries: 5
kibana:
image: docker.elastic.co/kibana/kibana:7.14.1
container_name: kibana
environment:
ELASTICSEARCH_URL: http://elasticsearch:9200
ELASTICSEARCH_HOSTS: http://elasticsearch:9200
ports:
- 5601:5601
depends_on:
- elasticsearch
wireshark:
image: ghcr.io/linuxserver/wireshark
container_name: wireshark
cap_add:
- NET_ADMIN
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/London
volumes:
- wireshark:/config
ports:
- 3000:3000
restart: unless-stopped
dvwa_web:
image: cytopia/dvwa:php-${PHP_VERSION:-7.2}
restart: unless-stopped
ports:
- "${LISTEN_PORT:-8000}:80"
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: mysql:5.6
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
volumes:
elasticsearch:
driver: local
dvwa_db_data:
driver: local
wireshark:
driver: local