-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
91 lines (87 loc) · 2.92 KB
/
docker-compose.yml
File metadata and controls
91 lines (87 loc) · 2.92 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
services:
postgres:
image: pgvector/pgvector:pg17
container_name: eliza-local-db
restart: unless-stopped
ports:
- "5432:5432"
environment:
POSTGRES_USER: eliza_dev
POSTGRES_PASSWORD: local_dev_password
POSTGRES_DB: eliza_dev
volumes:
- postgres_data:/var/lib/postgresql/data
- ./packages/scripts/init-db.sh:/docker-entrypoint-initdb.d/10-init-db.sh
- ./packages/scripts/init-steward-db.sh:/docker-entrypoint-initdb.d/20-steward.sh
healthcheck:
test:
- CMD-SHELL
- pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB
interval: 10s
timeout: 5s
retries: 12
redis:
image: redis:7-alpine
container_name: eliza-local-redis
restart: unless-stopped
ports:
- "6379:6379"
volumes:
- redis_data:/data
command: redis-server --appendonly yes
redis-rest:
image: hiett/serverless-redis-http:latest
container_name: eliza-local-redis-rest
restart: unless-stopped
ports:
- "8079:80"
environment:
SRH_MODE: env
SRH_TOKEN: local_dev_token
SRH_CONNECTION_STRING: redis://redis:6379
depends_on:
- redis
steward:
# Steward auth service — agent wallet infrastructure + multi-tenant auth
# Source: https://github.com/Steward-Fi/steward (sibling repo)
# In production this is hosted on ElizaCloud's own infrastructure.
# For local dev, build from source if ../steward exists, otherwise skip.
build:
context: ../steward
dockerfile: Dockerfile
container_name: eliza-steward
restart: unless-stopped
ports:
- "3200:3200"
environment:
PORT: 3200
NODE_ENV: development
STEWARD_MASTER_PASSWORD: ${STEWARD_MASTER_PASSWORD:-dev-master-password-change-in-prod}
STEWARD_JWT_SECRET: ${STEWARD_JWT_SECRET:-dev-jwt-secret-change-in-prod}
STEWARD_SESSION_SECRET: ${STEWARD_JWT_SECRET:-dev-jwt-secret-change-in-prod}
DATABASE_URL: "postgresql://eliza_dev:local_dev_password@postgres:5432/steward"
STEWARD_PLATFORM_KEYS: ${STEWARD_PLATFORM_KEYS:-}
RESEND_API_KEY: ${RESEND_API_KEY:-}
EMAIL_FROM: ${EMAIL_FROM:-login@elizacloud.ai}
APP_URL: ${NEXT_PUBLIC_APP_URL:-http://localhost:3000}
PASSKEY_RP_NAME: ElizaCloud
PASSKEY_RP_ID: localhost
PASSKEY_ORIGIN: ${NEXT_PUBLIC_APP_URL:-http://localhost:3000}
GOOGLE_CLIENT_ID: ${GOOGLE_CLIENT_ID:-}
GOOGLE_CLIENT_SECRET: ${GOOGLE_CLIENT_SECRET:-}
DISCORD_CLIENT_ID: ${DISCORD_CLIENT_ID:-}
DISCORD_CLIENT_SECRET: ${DISCORD_CLIENT_SECRET:-}
TWITTER_CLIENT_ID: ${TWITTER_CLIENT_ID:-}
TWITTER_CLIENT_SECRET: ${TWITTER_CLIENT_SECRET:-}
depends_on:
postgres:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:3200/health || exit 1"]
interval: 15s
timeout: 5s
retries: 8
start_period: 45s
volumes:
postgres_data:
redis_data: