-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
74 lines (68 loc) · 1.74 KB
/
docker-compose.prod.yml
File metadata and controls
74 lines (68 loc) · 1.74 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
version: '3.8'
services:
app:
build:
context: .
dockerfile: Dockerfile
ports:
- "3000:3000"
environment:
- NODE_ENV=production
- DATABASE_URL=file:./data/prod.db
- OPENAI_API_KEY=${OPENAI_API_KEY}
- OPENAI_API_BASE=${OPENAI_API_BASE:-https://api.deepseek.com/v1}
- JWT_SECRET=${JWT_SECRET}
- MEMMACHINE_URL=${MEMMACHINE_URL:-http://memmachine:8081}
- TAVILY_API_KEY=${TAVILY_API_KEY}
volumes:
- ./data:/app/data
- ./public/uploads:/app/public/uploads
restart: unless-stopped
depends_on:
- memmachine
networks:
- app-network
memmachine:
image: memmachine/memmachine:latest
ports:
- "8081:8081"
environment:
- NEO4J_URI=bolt://neo4j:7687
- NEO4J_USER=neo4j
- NEO4J_PASSWORD=${NEO4J_PASSWORD:-changeme}
- OPENAI_API_KEY=${OPENAI_API_KEY}
- DATABASE_URL=postgresql://postgres:${POSTGRES_PASSWORD:-changeme}@postgres:5432/memmachine
depends_on:
- postgres
- neo4j
restart: unless-stopped
networks:
- app-network
postgres:
image: postgres:15-alpine
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-changeme}
- POSTGRES_DB=memmachine
volumes:
- postgres-data:/var/lib/postgresql/data
restart: unless-stopped
networks:
- app-network
neo4j:
image: neo4j:5.13.0
environment:
- NEO4J_AUTH=neo4j/${NEO4J_PASSWORD:-changeme}
- NEO4J_PLUGINS=["apoc"]
- NEO4J_dbms_security_procedures_unrestricted=apoc.*
volumes:
- neo4j-data:/data
restart: unless-stopped
networks:
- app-network
volumes:
postgres-data:
neo4j-data:
networks:
app-network:
driver: bridge