Skip to content

Commit 49540e1

Browse files
committed
Create new docker-compose with mysql
1 parent a315c48 commit 49540e1

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
version: "3.2"
2+
3+
services:
4+
vuln-django:
5+
image: vuln_django
6+
container_name: vuln-django
7+
build:
8+
dockerfile: Dockerfile
9+
context: .
10+
args:
11+
- SERVER_PORT=${SERVER_PORT:-8020}
12+
- DATABASE=mysql
13+
environment:
14+
- SERVER_PORT=${SERVER_PORT:-8020}
15+
ports:
16+
- ${SERVER_PORT:-8020}:${SERVER_PORT:-8020}
17+
entrypoint:
18+
- /opt/app/start-server.sh
19+
20+
mysql:
21+
image: mysql
22+
environment:
23+
MYSQL_ROOT_PASSWORD: root_password
24+
MYSQL_DATABASE: django_db
25+
MYSQL_USER: django_user
26+
MYSQL_PASSWORD: django_password
27+
ports:
28+
- 3306:3306
29+

0 commit comments

Comments
 (0)