generated from i-am-bee/bee-agent-framework-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
91 lines (90 loc) · 2.25 KB
/
docker-compose.yml
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
services:
bee-code-interpreter-k3s:
profiles:
- all
- code_interpreter
image: "rancher/k3s:v1.31.2-k3s1"
command: ["server", "--tls-san", "bee-code-interpreter-k3s"]
tmpfs:
- /run
- /var/run
ulimits:
nproc: 65535
nofile:
soft: 65535
hard: 65535
privileged: true
restart: always
volumes:
- k3s-containerd:/var/lib/rancher/k3s/agent/containerd
- ${CODE_INTEPRETER_TMPDIR:-./tmp/code_interpreter_target}:/storage
- ./infra/bee-code-interpreter.yaml:/var/lib/rancher/k3s/server/manifests/bee-code-interpreter.yaml
ports:
- "50051:30051"
healthcheck:
test: "kubectl get pod code-interpreter | grep Running"
interval: 10s
retries: 10
start_period: 30s
mongo:
profiles:
- all
- observe
image: mongo:7
environment:
MONGO_INITDB_ROOT_USERNAME: mongo
MONGO_INITDB_ROOT_PASSWORD: mongo
healthcheck:
test: |
mongosh --quiet --eval 'db.getSiblingDB("bee-observe").getCollection("span") ? quit(0) : quit(1)' || exit 1
interval: 10s
timeout: 5s
retries: 5
redis:
profiles:
- all
- observe
image: redis:7
command: redis-server --save 20 1 --loglevel warning
healthcheck:
test: ["CMD-SHELL", "redis-cli ping | grep PONG"]
interval: 10s
timeout: 5s
retries: 5
mlflow:
profiles:
- all
- observe
image: bitnami/mlflow:2.16.2
ports:
- "8080:8080"
entrypoint: ["/bin/bash", "-c", "/entrypoint.sh && mlflow server --host 0.0.0.0 --port 8080"]
security_opt:
- "label=disable"
volumes:
- ./infra/observe/entrypoint.sh:/entrypoint.sh:ro
observe_api:
profiles:
- all
- observe
image: icr.io/i-am-bee/bee-observe:0.0.4
ports:
- "4002:3000"
command: >
/bin/sh -c "
npx mikro-orm --config dist/mikro-orm.config.js migration:up &&
node ./dist/index.js
"
env_file:
- ./infra/observe/.env.docker
healthcheck:
test: wget --no-verbose --tries=1 --spider http://0.0.0.0:3000/health || exit 1
interval: 10s
timeout: 5s
retries: 5
depends_on:
- mlflow
- mongo
- redis
volumes:
k3s-containerd: