-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
79 lines (71 loc) · 1.58 KB
/
Copy pathdocker-compose.yml
File metadata and controls
79 lines (71 loc) · 1.58 KB
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
version: '3.8'
services:
# Chapter 04: SQL Injection Lab
sqli-lab:
build: ./ch04-sql-injection
ports:
- "5004:5000"
environment:
- FLASK_ENV=development
volumes:
- ./ch04-sql-injection:/app
# Chapter 05: XSS Lab
xss-lab:
build: ./ch05-xss
ports:
- "5005:5000"
environment:
- FLASK_ENV=development
volumes:
- ./ch05-xss:/app
# Chapter 06: CSRF Lab
csrf-lab:
build: ./ch06-csrf
ports:
- "5006:5000"
environment:
- FLASK_ENV=development
volumes:
- ./ch06-csrf:/app
# Chapter 07: File Upload Lab
upload-lab:
build: ./ch07-file-upload
ports:
- "5007:5000"
environment:
- FLASK_ENV=development
volumes:
- ./ch07-file-upload:/app
# Chapter 08: Deserialization Lab
pickle-lab:
build: ./ch08-deserialization
ports:
- "5008:5000"
environment:
- FLASK_ENV=development
volumes:
- ./ch08-deserialization:/app
# Chapter 09: Authentication Lab
auth-lab:
build: ./ch09-authentication
ports:
- "5009:5000"
environment:
- FLASK_ENV=development
- JWT_SECRET=change-this-in-production
volumes:
- ./ch09-authentication:/app
# Shared PostgreSQL for SQL injection labs
postgres:
image: postgres:15-alpine
environment:
POSTGRES_USER: labuser
POSTGRES_PASSWORD: labpass
POSTGRES_DB: securecoding
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- ./init-db.sql:/docker-entrypoint-initdb.d/init.sql
volumes:
postgres_data: