-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathai-agents-dev-kit.yml
More file actions
121 lines (112 loc) · 2.79 KB
/
ai-agents-dev-kit.yml
File metadata and controls
121 lines (112 loc) · 2.79 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
volumes:
agent_workflow_data:
agent_db_data:
agent_llm_data:
agent_vector_data:
agent_cache_data:
agent_neo4j_data:
networks:
aiagent_net:
x-n8n: &service-n8n
image: n8nio/n8n:latest
networks: ['aiagent_net']
environment:
- DB_TYPE=postgresdb
- DB_POSTGRESDB_HOST=postgres
- DB_POSTGRESDB_USER=${POSTGRES_USER}
- DB_POSTGRESDB_PASSWORD=${POSTGRES_PASSWORD}
- N8N_DIAGNOSTICS_ENABLED=false
- N8N_PERSONALIZATION_ENABLED=false
- N8N_ENCRYPTION_KEY
- N8N_USER_MANAGEMENT_JWT_SECRET
links:
- postgres
services:
postgres:
image: postgres:16-alpine
networks: ['aiagent_net']
restart: unless-stopped
environment:
- POSTGRES_USER
- POSTGRES_PASSWORD
- POSTGRES_DB
volumes:
- agent_db_data:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -h localhost -U ${POSTGRES_USER} -d ${POSTGRES_DB}']
interval: 5s
timeout: 5s
retries: 10
n8n:
<<: *service-n8n
container_name: agent-workflow
restart: unless-stopped
ports:
- 5678:5678
volumes:
- agent_workflow_data:/home/node/.n8n
- ./shared:/data/shared
depends_on:
postgres:
condition: service_healthy
qdrant:
image: qdrant/qdrant:latest
container_name: agent-vector-store
networks: ['aiagent_net']
restart: unless-stopped
ports:
- 6333:6333
volumes:
- agent_vector_data:/qdrant/storage
redis:
image: redis/redis-stack:latest
container_name: agent-cache
networks: ['aiagent_net']
restart: unless-stopped
ports:
- 6379:6379
- 8001:8001
volumes:
- agent_cache_data:/data
ollama:
image: ollama/ollama:latest
container_name: agent-llm
networks: ['aiagent_net']
restart: unless-stopped
ports:
- 11434:11434
volumes:
- agent_llm_data:/root/.ollama
ollama-init:
image: ollama/ollama:latest
networks: ['aiagent_net']
container_name: agent-llm-init
restart: "no"
volumes:
- agent_llm_data:/root/.ollama
entrypoint: /bin/sh
command:
- "-c"
- "sleep 3; OLLAMA_HOST=agent-llm:11434 ollama pull llama3.2"
depends_on:
- ollama
neo4j:
image: neo4j:5.26-enterprise
container_name: agent-graph-db
networks: [ 'aiagent_net' ]
restart: unless-stopped
ports:
- 7474:7474 # HTTP
- 7687:7687 # Bolt
environment:
- NEO4J_AUTH=neo4j/${NEO4J_PASSWORD}
- NEO4J_ACCEPT_LICENSE_AGREEMENT=yes
- NEO4J_server_memory_heap_initial__size=1G
- NEO4J_server_memory_heap_max__size=2G
volumes:
- agent_neo4j_data:/data
healthcheck:
test: [ "CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:7474" ]
interval: 10s
timeout: 5s
retries: 5