-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
35 lines (31 loc) · 906 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
version: '3.3'
networks:
every:
external: false
services:
# Here, we build the vulnerable Squid image. I do this because the vulnerable
# version may be yanked from repositories in the near future, and because
# specific configuration has to go into the build for it to work.
squid:
build: .
container_name: 'vulnerable'
hostname: 'vulnerable'
networks:
- every
ports:
- '3128:3128'
volumes:
- "$PWD/source/squid.conf:/etc/squid/squid.conf:ro"
- "$PWD/key.pem:/key.pem:ro"
- "$PWD/cert.pem:/cert.pem:ro"
web:
container_name: 'malicious'
hostname: 'malicious'
image: 'nginx:latest'
networks:
- every
volumes:
- "$PWD/source/nginx.conf:/etc/nginx/nginx.conf:ro"
- "$PWD/source/index.html:/usr/share/nginx/html/index.html:ro"
- "$PWD/key.pem:/key.pem:ro"
- "$PWD/cert.pem:/cert.pem:ro"