-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
105 lines (99 loc) · 2.63 KB
/
docker-compose.yml
File metadata and controls
105 lines (99 loc) · 2.63 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
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
#
#
# As a user:
# run `docker-compose up` to run the demo
# if a new version has been release that you wish to try
# `docker-compose pull` follwed by
# `docker-compose up`
#
# If you wish to try a specific version:
# `IMAGE_TAG='aversion' docker-compose up`
#
services:
coagent-core:
image: coadotdev/coagent-core:${IMAGE_TAG:-stable}
ports:
- "3000:3000"
environment:
- CLICKHOUSE_URL=http://clickhouse:8123
- CLICKHOUSE_DATABASE=coagent
- CLICKHOUSE_USER=coagent
- CLICKHOUSE_PASSWORD=coagent
- DATABASE_URL=postgresql://coagent:coagent@postgres:5432/coagent
- RUST_LOG=${RUST_LOG:-info}
- OLLAMA_API_BASE_URL=http://host.docker.internal:11434
volumes:
- ./coagent_demo_storage:/app/storage
depends_on:
clickhouse:
condition: service_healthy
postgres:
condition: service_healthy
pull_policy: if_not_present
clickhouse:
image: clickhouse/clickhouse-server:25.6-alpine
ports:
- "8123:8123"
- "9000:9000"
environment:
CLICKHOUSE_USER: "coagent"
CLICKHOUSE_PASSWORD: "coagent"
volumes:
- .volumes/clickhouse/data:/var/lib/clickhouse
- ./config/clickhouse/initdb.d:/docker-entrypoint-initdb.d:ro
healthcheck:
test: [ "CMD", "clickhouse-client", "--query", "SELECT 1" ]
interval: 30s
timeout: 10s
retries: 5
start_period: 30s
surrealdb:
image: surrealdb/surrealdb:v2.3.7
ports:
- "8000:8000"
environment:
- RUST_LOG=${RUST_LOG:-info}
profiles:
- surrealdb
entrypoint:
- /surreal
- start
- --user
- surreal
- --pass
- surreal
init-surrealdb:
image: coadotdev/coagent-demo-surrealdb-init:latest
environment:
- DB_ENDPOINT=http://surrealdb:8000
profiles:
- surrealdb
depends_on:
surrealdb:
condition: service_started
ollama:
image: ollama/ollama
volumes:
- ollama_storage:/root/.ollama
profiles:
- local-llm
entrypoint: [ "/bin/bash", "-c", "ollama serve & sleep 5 && ollama pull all-minilm && ollama pull qwen3:4b && wait" ]
postgres:
image: postgres:16-alpine
ports:
- "5432:5432"
environment:
POSTGRES_USER: "coagent"
POSTGRES_PASSWORD: "coagent"
POSTGRES_DB: "coagent"
volumes:
- .volumes/postgres/data:/var/lib/postgresql/data:z
- ./config/postgres/initdb.d:/docker-entrypoint-initdb.d:ro
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U coagent -d coagent" ]
interval: 30s
timeout: 10s
retries: 5
start_period: 30s
volumes:
ollama_storage: