-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (58 loc) · 1.75 KB
/
docker-compose.yml
File metadata and controls
62 lines (58 loc) · 1.75 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
version: "3.7"
services:
cns_client:
container_name: cns_client
build:
context: .
dockerfile: client/Dockerfile-client
volumes:
- /dev/shm:/dev/shm
- ./client/keys:/client/keys
- ./client/errors:/client/erros
- ./client/sessions:/client/sessions
- ./client/proxy.py:/client/proxy.py
- ./client/config.json:/client/config.json
- ./implementation:/implementation
ports:
- "5800:5800"
networks:
- cns
cns_student:
container_name: cns_student
privileged: true
build:
context: .
dockerfile: student/Dockerfile-student
volumes:
- ./student:/student
- ./implementation:/implementation
sysctls:
# Necessary for transparent mode for mitmproxy
- net.ipv4.ip_forward=1
- net.ipv6.conf.all.forwarding=1
- net.ipv4.conf.all.send_redirects=0
networks:
- cns
cns_flaskr:
container_name: cns_flaskr
build:
context: .
dockerfile: flaskr/Dockerfile-flaskr
volumes:
- ./flaskr/keys:/flaskr/keys
- ./flaskr/errors:/flaskr/errors
- ./flaskr/sessions:/flaskr/sessions
- ./flaskr/proxy.py:/flaskr/proxy.py
- ./flaskr/config.json:/flaskr/config.json
- ./implementation:/implementation
networks:
- cns
depends_on:
- cns_flaskr_db
cns_flaskr_db:
container_name: cns_flaskr_db
image: ghcr.io/computer-and-network-security/cns_flaskr_db:2023.1
networks:
- cns
networks:
cns: