-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
42 lines (40 loc) · 912 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
services:
mariadb-server:
container_name: mariadb-server
image: mariadb:latest
restart: always
environment:
MYSQL_ROOT_PASSWORD: root
ports:
- "3306:3306"
volumes:
- ./mariadb_data:/var/lib/mysql
- /home/zli/Desktop/106-exercises/:/workspace
phpmyadmin:
container_name: phpmyadmin
image: phpmyadmin/phpmyadmin
restart: always
environment:
PMA_HOST: mariadb-server
PMA_USER: root
PMA_PASSWORD: root
ports:
- "8080:80"
depends_on:
- mariadb-server
sql-injection:
container_name: sql-injection
build: ./sql-injection/
restart: always
volumes:
- ./sql-injection:/usr/app/
- /usr/app/node_modules
ports:
- "8081:8081"
depends_on:
- mariadb-server
environment:
DB_HOST: mariadb-server
DB_USER: root
DB_PASS: root
command: npm run dev