-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
88 lines (83 loc) · 2.51 KB
/
docker-compose.yml
File metadata and controls
88 lines (83 loc) · 2.51 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
version: '3.8'
services:
# The Kernel (Agent + API)
jubilee-core:
build:
context: .
dockerfile: Dockerfile
ports:
- "3001:3001"
environment:
- NODE_ENV=production
- JUBILEE_ADMIN_TOKEN=${JUBILEE_ADMIN_TOKEN:-admin_password}
- JUBILEE_READ_TOKEN=${JUBILEE_READ_TOKEN:-public_read}
# LLM API Keys
- OPENAI_API_KEY=${OPENAI_API_KEY}
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}
- GOOGLE_API_KEY=${GOOGLE_API_KEY}
- XAI_API_KEY=${XAI_API_KEY}
- OPENROUTER_API_KEY=${OPENROUTER_API_KEY}
# Treasury
- CDP_API_KEY_NAME=${CDP_API_KEY_NAME}
- CDP_API_KEY_PRIVATE_KEY=${CDP_API_KEY_PRIVATE_KEY}
- NETWORK_ID=${NETWORK_ID:-base-mainnet}
- DATABASE_URL=postgres://jubilee:${JUBILEE_DB_PASSWORD:-jubilee123}@jubilee-db:5432/jubilee_os
volumes:
- ./data:/app/data
- ./logs:/app/logs
depends_on:
jubilee-db:
condition: service_healthy
healthcheck:
test: [ "CMD-SHELL", "curl -sf http://localhost:3001/health || exit 1" ]
interval: 10s
timeout: 5s
retries: 3
start_period: 15s
command: [ "sh", "-c", "bun run db:push && bun run src/index.tsx" ]
# The Shell (Frontend)
jubilee-shell:
build:
context: ./web
dockerfile: Dockerfile
ports:
- "3000:3000"
environment:
- NEXT_PUBLIC_READ_TOKEN=${JUBILEE_READ_TOKEN:-public_read}
# In Docker network, the component name is the hostname
# But checking client-side (browser) vs server-side (SSG) fetching
# Browser -> needs public URL. Docker -> needs container URL.
# For now, we assume simple localhost mapping or browser access.
# If SSR fetch happens, it needs http://jubilee-core:3001
depends_on:
- jubilee-core
# The Memory (Database)
jubilee-db:
image: pgvector/pgvector:pg16
restart: always
environment:
POSTGRES_USER: jubilee
POSTGRES_PASSWORD: ${JUBILEE_DB_PASSWORD:-jubilee123}
POSTGRES_DB: jubilee_os
ports:
- "5432:5432"
volumes:
- jubilee_db_data:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U jubilee -d jubilee_os" ]
interval: 5s
timeout: 5s
retries: 5
# The Gateway (Nginx)
jubilee-gateway:
image: nginx:alpine
ports:
- "80:80"
# - "443:443" # Uncomment for SSL
volumes:
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
depends_on:
- jubilee-shell
- jubilee-core
volumes:
jubilee_db_data: