-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yaml
83 lines (81 loc) · 2.23 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
version: '3.7'
services:
ui:
build: .
image: 5g-slicer-jupiter
volumes:
- ./:/home/jovyan/work
ports:
- 8888:8888
- 5555:5555
environment:
- "JUPYTER_ENABLE_LAB=yes"
- "GRANT_SUDO=yes"
user: root
command: ['start.sh', 'jupyter', 'lab']
controller:
image: fogify
entrypoint: [ "python", "/code/fogify/main.py", "--controller"]
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /usr/bin/docker:/usr/bin/docker
ports:
- 5000:5000
extra_hosts:
- ${MANAGER_NAME}:${MANAGER_IP}
environment:
CPU_OVERSUBSCRIPTION_PERCENTAGE: ${CPU_OVERSUBSCRIPTION_PERCENTAGE}
RAM_OVERSUBSCRIPTION_PERCENTAGE: ${RAM_OVERSUBSCRIPTION_PERCENTAGE}
CPU_FREQ: ${CPU_FREQ}
HOST_IP: ${HOST_IP}
NAMESPACE_PATH: ${NAMESPACE_PATH}
SNIFFING_ENABLED: ${SNIFFING_ENABLED}
SNIFFING_PERIOD: ${SNIFFING_PERIOD}
CONNECTOR: ${CONNECTOR}
MANAGER_IP: ${MANAGER_IP}
MANAGER_NAME: ${MANAGER_NAME}
agent:
image: fogify
entrypoint: [ "python", "/code/fogify/main.py", "--agent", "--agent-ip", "${HOST_IP}"]
extra_hosts:
- ${MANAGER_NAME}:${MANAGER_IP}
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /usr/bin/docker:/usr/bin/docker
- /proc/:${NAMESPACE_PATH}
- /var/run/docker/:/var/run/docker/
- /sys/class/net/:/sys/class/net/
- /lib/modules:/lib/modules
- /sbin/modprobe:/sbin/modprobe
- /usr/lib/tc:/usr/lib/tc
privileged: true
cap_add:
- ALL
depends_on:
- cadvisor
- controller
ports:
- 5500:5500
environment:
CONTROLLER_IP: ${MANAGER_IP}
HOST_IP: ${HOST_IP}
CPU_FREQ: ${CPU_FREQ}
NAMESPACE_PATH: ${NAMESPACE_PATH}
SNIFFING_ENABLED: ${SNIFFING_ENABLED}
SNIFFING_PERIODICITY: ${SNIFFING_PERIODICITY}
CONNECTOR: ${CONNECTOR}
MANAGER_IP: ${MANAGER_IP}
MANAGER_NAME: ${MANAGER_NAME}
cadvisor:
image: gcr.io/google-containers/cadvisor:latest
volumes:
- /:/rootfs:ro
- /var/run:/var/run:ro
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
- /dev/disk/:/dev/disk:ro
ports:
- 9090:8080
expose:
- 8080
- 9090