-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
67 lines (61 loc) · 1.71 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
version: '3.2'
services:
boagent:
image: ghcr.io/boavizta/boagent:greenhack22
environment:
BOAGENT_DB_PATH: "/app/db/boagent.db"
BOAVIZTAPI_ENDPOINT: "http://boaviztapi:5000"
DEFAULT_LIFETIME: 5.0
HARDWARE_FILE_PATH: "/home/boagent/hardware_data.json"
POWER_FILE_PATH: "/app/data/power_data.json"
AZURE_LOCATION: "westus2"
#user: boagent
depends_on:
- boaviztapi
- scaphandre
ports:
- "8000:8000"
networks:
- boagent-network
volumes:
- "/proc:/proc"
- "/sys:/sys:ro"
- "powerdata:/app/data:ro"
- "./db:/app/db"
- "/etc/crontab:/etc/crontab"
# entrypoint: [ "/usr/bin/test", "-e", "db/boagent.db", "||", "sqlite3", "/app/boagent.db", ";", "/bin/bash", "-c", "cd", "boagent/api", "&&", "uvicorn", "api:app", "--host", "0.0.0.0"]
scaphandre:
image: hubblo/scaphandre:greenhack22
volumes:
- type: bind
source: /proc
target: /proc
- type: bind
source: /sys/class/powercap
target: /sys/class/powercap
- "powerdata:/app/data:rw"
command: [ "--no-header", "json", "-s", "10", "--max-top-consumers", "0", "-f", "/app/data/power_data.json" ]
networks:
- boagent-network
watcher:
image: bpetit/platypus
depends_on:
- boagent
networks:
- boagent-network
boaviztapi:
image: ghcr.io/boavizta/boaviztapi:greenhack22
ports:
- "127.0.0.1:5000:5000"
networks:
- boagent-network
volumes:
- "../boaviztapi/boaviztapi:/app/boaviztapi"
volumes:
powerdata: {}
networks:
boagent-network:
driver: bridge
ipam:
config:
- subnet: 192.168.33.0/24