forked from ayvazyan10/engram
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
71 lines (66 loc) · 1.48 KB
/
Copy pathdocker-compose.yml
File metadata and controls
71 lines (66 loc) · 1.48 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
version: '3.9'
services:
# PostgreSQL with pgvector extension for production-like dev
postgres:
image: pgvector/pgvector:pg16
ports:
- '5432:5432'
environment:
POSTGRES_DB: engram
POSTGRES_USER: engram
POSTGRES_PASSWORD: dev_password
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U engram']
interval: 5s
timeout: 5s
retries: 5
# Engram REST API
api:
build:
context: .
dockerfile: apps/server/Dockerfile
ports:
- '4901:4901'
environment:
ENGRAM_DB_PATH: /data/engram.db
NODE_ENV: production
volumes:
- api_data:/data
depends_on:
postgres:
condition: service_healthy
healthcheck:
test: ['CMD', 'wget', '-q', '-O', '-', 'http://localhost:4901/api/health']
interval: 10s
timeout: 5s
retries: 3
# Engram Web Dashboard
web:
build:
context: .
dockerfile: apps/web/Dockerfile
ports:
- '4902:80'
depends_on:
- api
# Ollama (optional — for local LLM with memory)
# Uncomment to enable:
# ollama:
# image: ollama/ollama:latest
# ports:
# - '11434:11434'
# volumes:
# - ollama_data:/root/.ollama
# deploy:
# resources:
# reservations:
# devices:
# - driver: nvidia
# count: 1
# capabilities: [gpu]
volumes:
postgres_data:
api_data:
# ollama_data: