Skip to content

Commit 6ec4efd

Browse files
committed
Exposing only one port
1 parent f01b1b4 commit 6ec4efd

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ How to Use/Setup ?
2020
2. Install docker-compose: https://docs.docker.com/compose/install/
2121
3. Inside this directory, run `sudo docker-compose up` and wait untill everything is configured for you.
2222
4. In your Browser, go to "http://localhost:8080/JavaVulnerableLab/install.jsp
23-
5. Click the Install Button
24-
6. Enjoy :)
23+
5. Change the JDBC URL from jdbc:mysql://localhost:3306 to jdbc:mysql://mysql:3306
24+
6. Click the Install Button
25+
7. Enjoy :)
2526

2627

2728
**Method 2.Very Easiest Method : VirtualBox VM**

docker-compose.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@ javavulnlab:
22
build: .
33
ports:
44
- 8080:8080
5-
net: host
5+
links:
6+
- mysql
67

78
mysql:
89
image: mysql
910
environment:
1011
- MYSQL_ROOT_PASSWORD=root
11-
net: host
12-
ports:
13-
- 3306:3306

0 commit comments

Comments
 (0)