-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
134 lines (132 loc) · 3.61 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
healthcheck:
test: ["CMD-SHELL", "sh -c 'pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}'"]
interval: 10s
timeout: 3s
retries: 3
networks:
autodyne:
ipv4_address: 172.21.0.2
aliases:
- postgres
- autodyne-db
setup:
image: autodyne
container_name: setup
depends_on:
postgres:
condition: service_healthy
healthcheck:
test: [ "CMD-SHELL", "sh -c 'pg_isready -h autodyne-db -U ${POSTGRES_USER} -d ${POSTGRES_DB}'" ]
interval: 10s
timeout: 3s
retries: 3
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
- ./sample_output:/opt/firmadyne/samples-out
networks:
autodyne:
ipv4_address: 172.21.0.3
aliases:
- setup
emulator-1:
image: autodyne
container_name: autodyne-em1
depends_on:
setup:
condition: service_healthy
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.5b.sh", "netgear", "1.tar"]
volumes:
- ./samples:/opt/firmadyne/samples
- ./sample_output:/opt/firmadyne/samples-out
networks:
autodyne:
ipv4_address: 172.21.0.4
aliases:
- autodyne-em1
emulator-2:
image: autodyne
container_name: autodyne-em2
depends_on:
setup:
condition: service_healthy
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.5b.sh", "lede", "2.bin"]
volumes:
- ./samples:/opt/firmadyne/samples
- ./sample_output:/opt/firmadyne/samples-out
networks:
autodyne:
ipv4_address: 172.21.0.5
aliases:
- autodyne-em2