-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
74 lines (68 loc) · 2.23 KB
/
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
# Dynamically add an agent container that talks to the control plane:
# docker run -it --rm --network centrality_default --name centrality-machineagent3 centrality-machineagent1 python3.11 machineagent/machineagent/cli.py launch -f tests/configs/dockercompose/machineagent-auto.yaml --machine-id auto
services:
machineagent-auto:
build: .
deploy:
replicas: 2
environment:
- PYTHONUNBUFFERED=1
- CENTRALITY_DEVELOPMENT_METRIC_SPEED
working_dir: /centrality
command: "python3.11 machineagent/machineagent/cli.py launch -f tests/configs/dockercompose/machineagent-auto.yaml --machine-id auto"
depends_on:
- controlplane
machineagent-real:
build: .
environment:
- PYTHONUNBUFFERED=1
- CENTRALITY_DEVELOPMENT_METRIC_SPEED
working_dir: /centrality
command: "python3.11 machineagent/machineagent/cli.py launch -f tests/configs/dockercompose/machineagent-real.yaml"
depends_on:
- controlplane
machineagent-fake:
build: .
environment:
- PYTHONUNBUFFERED=1
- CENTRALITY_DEVELOPMENT_METRIC_SPEED
working_dir: /centrality
command: "python3.11 machineagent/machineagent/cli.py launch -f tests/configs/dockercompose/machineagent-fake.yaml"
depends_on:
- controlplane
machineagent-gpu:
build: .
environment:
- PYTHONUNBUFFERED=1
- CENTRALITY_DEVELOPMENT_METRIC_SPEED
working_dir: /centrality
command: "python3.11 machineagent/machineagent/cli.py launch -f tests/configs/dockercompose/machineagent-gpus.yaml"
depends_on:
- controlplane
controlplane:
build: .
ports:
- "0.0.0.0:8000:8000"
environment:
- PYTHONUNBUFFERED=1
- CENTRALITY_DEVELOPMENT_METRIC_SPEED
working_dir: /centrality/controlplane
command: "python3.11 controlplane/cli.py launch --postgres-host postgres"
depends_on:
- postgres
rapidui:
build: .
ports:
- "0.0.0.0:8501:8501"
environment:
- PYTHONUNBUFFERED=1
working_dir: /centrality/rapidui
command: "./launch.bash ../tests/configs/dockercompose/rapidui.yaml"
depends_on:
- controlplane
postgres:
image: "postgres:16.1"
environment:
- POSTGRES_PASSWORD=postgres
ports:
- "0.0.0.0:5432:5432"