-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
107 lines (102 loc) · 2.8 KB
/
docker-compose.yaml
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
networks:
dp-network:
driver: bridge
services:
client:
container_name: dp-client
build:
dockerfile: client/Dockerfile
args:
DISPLAY: ${DISPLAY} # Pass display variable from terminal
environment:
- DISPLAY=${DISPLAY} # Pass display variable from terminal
- GRPC_URL=dp-server:7777
- GRPC_TIMEOUT=10s
depends_on:
server:
condition: service_healthy
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix # X11 forwarding
entrypoint: /app/client/build/client
networks:
- dp-network
raspberrypi:
container_name: emulate-raspberrypi
build:
context: raspberry-pi
dockerfile: Dockerfile
depends_on:
server:
condition: service_healthy
environment:
- SERVER_HOST=server
- SERVER_PORT=4747
- TCP_ADDRESS=server
- TCP_PORT=4749
- TEST=True
- HOME_WIFI=Vodafone-A60818803 # Change with your SSID
- BETTERCAP=False
entrypoint: /app/rsp/build/daemon insecure-login --username=admin --password=test1234
networks:
- dp-network
server:
container_name: dp-server
build:
dockerfile: server/Dockerfile
depends_on:
database:
condition: service_healthy
environment:
- BACKEND_HOST=0.0.0.0
- BACKEND_PORT=4747
- FRONTEND_HOST=0.0.0.0
- FRONTEND_PORT=4748
- DB_USER=agent
- DB_PASSWORD=SUPERSECUREUNCRACKABLEPASSWORD # This should be changed (remember to change it in database/initialize.sql too
- DB_HOST=dp-database
- DB_PORT=3306
- DB_NAME=dp_hashcat
- DB_CERT=dp_certs
- DB_CERT_USER=certs
- DB_CERT_PASSWORD=SUPERSECUREUNCRACKABLEPASSWORD # This should be changed (remember to change it in database/initialize.sql too
- ALLOW_REGISTRATIONS=True # Disable if needed
- DEBUG=True # This will enable seeds for having handshake, clients, and raspberryPI mocked
- RESET=True
- GRPC_URL=0.0.0.0:7777
- GRPC_TIMEOUT=10s
- TCP_ADDRESS=0.0.0.0
- TCP_PORT=4749
ports:
- 4748:4748
entrypoint: /app/server/build/server
healthcheck:
test: ["CMD-SHELL", "curl -s -o /dev/null -w '%{http_code}' -X POST -d '{}' http://localhost:4747/v1/login || exit 1"]
interval: 5s
timeout: 2s
retries: 10
start_period: 10s
networks:
- dp-network
database:
build: database
container_name: dp-database
environment:
MYSQL_RANDOM_ROOT_PASSWORD: "yes"
restart: unless-stopped
ports:
- "3306:3306"
healthcheck:
test:
[
"CMD",
"mysqladmin",
"ping",
"-h",
"localhost",
"-uagent",
"-pSUPERSECUREUNCRACKABLEPASSWORD",
]
timeout: 20s
retries: 10
networks:
- dp-network