forked from compsecdirect/autodyne
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
134 lines (132 loc) · 3.53 KB
/
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
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
version: '3.5'
networks:
autodyne:
ipam:
driver: default
config:
- subnet: 172.21.0.0/24
name: autodyne
services:
postgres:
image: postgres
container_name: autodyne-db
ports:
- "5432:5432"
environment:
- POSTGRES_USER=firmadyne
- POSTGRES_PASSWORD=firmadyne
- POSTGRES_DB=firmware
networks:
autodyne:
ipv4_address: 172.21.0.2
aliases:
- postgres
- autodyne-db
autodyne:
image: autodyne
container_name: autodyne
depends_on:
- postgres
privileged: true
environment:
- AUTODYNE_INIT_DB=1
devices:
- "/dev/mapper/control:/dev/mapper/control"
- "/dev/loop-control:/dev/loop-control"
- "/dev/loop0:/dev/loop0"
- "/dev/loop1:/dev/loop1"
- "/dev/loop2:/dev/loop2"
- "/dev/loop3:/dev/loop3"
- "/dev/loop4:/dev/loop4"
- "/dev/loop5:/dev/loop5"
- "/dev/loop6:/dev/loop6"
- "/dev/loop7:/dev/loop7"
- "/dev/loop8:/dev/loop8"
- "/dev/loop9:/dev/loop9"
- "/dev/loop10:/dev/loop10"
- "/dev/loop11:/dev/loop11"
- "/dev/loop12:/dev/loop12"
command: ["sh", "-c", "sleep 2073600"]
volumes:
- ./samples:/opt/firmadyne/samples
- ./samples-out:/opt/firmadyne/samples-out
- ./nginx-config:/etc/nginx/sites-available
networks:
autodyne:
ipv4_address: 172.21.0.3
aliases:
- autodyne
emulator-1:
image: autodyne
container_name: autodyne-em1
depends_on:
- postgres
- autodyne
privileged: true
devices:
- "/dev/mapper/control:/dev/mapper/control"
- "/dev/loop-control:/dev/loop-control"
- "/dev/loop0:/dev/loop0"
- "/dev/loop1:/dev/loop1"
- "/dev/loop2:/dev/loop2"
- "/dev/loop3:/dev/loop3"
- "/dev/loop4:/dev/loop4"
- "/dev/loop5:/dev/loop5"
- "/dev/loop6:/dev/loop6"
- "/dev/loop7:/dev/loop7"
- "/dev/loop8:/dev/loop8"
- "/dev/loop9:/dev/loop9"
- "/dev/loop10:/dev/loop10"
- "/dev/loop11:/dev/loop11"
- "/dev/loop12:/dev/loop12"
command: [ "/opt/firmadyne/autodyne-0.5a.sh", "foo", "1.bin"]
environment:
- CONTAINER_NAME=autodyne-em1
ports:
- 3001:80
volumes:
- ./samples:/opt/firmadyne/samples
- ./samples-out:/opt/firmadyne/samples-out
- ./nginx-config:/etc/nginx/sites-available
networks:
autodyne:
ipv4_address: 172.21.0.4
aliases:
- autodyne-em1
emulator-2:
image: autodyne
container_name: autodyne-em2
depends_on:
- postgres
- autodyne
privileged: true
devices:
- "/dev/mapper/control:/dev/mapper/control"
- "/dev/loop-control:/dev/loop-control"
- "/dev/loop0:/dev/loop0"
- "/dev/loop1:/dev/loop1"
- "/dev/loop2:/dev/loop2"
- "/dev/loop3:/dev/loop3"
- "/dev/loop4:/dev/loop4"
- "/dev/loop5:/dev/loop5"
- "/dev/loop6:/dev/loop6"
- "/dev/loop7:/dev/loop7"
- "/dev/loop8:/dev/loop8"
- "/dev/loop9:/dev/loop9"
- "/dev/loop10:/dev/loop10"
- "/dev/loop11:/dev/loop11"
- "/dev/loop12:/dev/loop12"
command: [ "/opt/firmadyne/autodyne-0.5a.sh", "netgear", "2.bin"]
environment:
- CONTAINER_NAME=autodyne-em2
ports:
- 3002:80
volumes:
- ./samples:/opt/firmadyne/samples
- ./samples-out:/opt/firmadyne/samples-out
- ./nginx-config:/etc/nginx/sites-available
networks:
autodyne:
ipv4_address: 172.21.0.5
aliases:
- autodyne-em2