-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.gpu.yml
More file actions
53 lines (49 loc) · 1.11 KB
/
docker-compose.gpu.yml
File metadata and controls
53 lines (49 loc) · 1.11 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
version: '3.8'
services:
db:
image: mysql:8.0
environment:
MYSQL_DATABASE: defender
MYSQL_USER: user
MYSQL_PASSWORD: password
MYSQL_ROOT_PASSWORD: rootpassword
volumes:
- db_data:/var/lib/mysql
ports:
- "3308:3306"
backend:
build:
context: ./backend
dockerfile: Dockerfile-gpu
command: ["./wait-for-it.sh", "db:3306", "--", "python", "manage.py", "runserver", "0.0.0.0:8000"]
volumes:
- ./backend:/app
- ./frontend:/app/frontend
- ./ssh_keys:/root/.ssh
- /tmp/pcap_shared:/app/pcap_shared
ports:
- "8000:8000"
environment:
MYSQL_DATABASE: defender
MYSQL_USER: user
MYSQL_PASSWORD: password
MYSQL_ROOT_PASSWORD: rootpassword
HOST_OS: ${HOST_OS}
EXECUTION_MODE: ${EXECUTION_MODE}
depends_on:
- db
deploy:
resources:
reservations:
devices:
- capabilities: [gpu]
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "4200:4200"
volumes:
- ./frontend:/app
volumes:
db_data: