-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
94 lines (84 loc) · 2.57 KB
/
docker-compose.yml
File metadata and controls
94 lines (84 loc) · 2.57 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
services:
db-prod:
container_name: alexclaw-db-prod
image: pgvector/pgvector:pg17
restart: unless-stopped
environment:
POSTGRES_USER: ${DATABASE_USERNAME:-alexclaw}
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
POSTGRES_DB: alex_claw_prod
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${DATABASE_USERNAME:-alexclaw}"]
interval: 5s
timeout: 3s
retries: 5
alexclaw-prod:
container_name: alexclaw-prod
build:
context: .
args:
BUILD_NUMBER: ${BUILD_NUMBER:-0}
hostname: node1.local
restart: unless-stopped
depends_on:
db-prod:
condition: service_healthy
ports:
- "${ADMIN_PORT:-5001}:5001"
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
# Database
DATABASE_USERNAME: ${DATABASE_USERNAME:-alexclaw}
DATABASE_PASSWORD: ${DATABASE_PASSWORD}
DATABASE_HOSTNAME: db-prod
# Application
SECRET_KEY_BASE: ${SECRET_KEY_BASE}
ADMIN_PASSWORD: ${ADMIN_PASSWORD}
# Telegram
TELEGRAM_BOT_TOKEN: ${TELEGRAM_BOT_TOKEN}
TELEGRAM_CHAT_ID: ${TELEGRAM_CHAT_ID}
# LLM providers (at least one required)
GEMINI_API_KEY: ${GEMINI_API_KEY:-}
ANTHROPIC_API_KEY: ${ANTHROPIC_API_KEY:-}
# Local models (optional)
OLLAMA_ENABLED: ${OLLAMA_ENABLED:-false}
OLLAMA_HOST: ${OLLAMA_HOST:-http://host.docker.internal:11434}
OLLAMA_MODEL: ${OLLAMA_MODEL:-}
LMSTUDIO_ENABLED: ${LMSTUDIO_ENABLED:-false}
LMSTUDIO_HOST: ${LMSTUDIO_HOST:-http://host.docker.internal:1234}
LMSTUDIO_MODEL: ${LMSTUDIO_MODEL:-}
# Web automator (optional)
WEB_AUTOMATOR_ENABLED: ${WEB_AUTOMATOR_ENABLED:-false}
WEB_AUTOMATOR_HOST: ${WEB_AUTOMATOR_HOST:-http://web-automator:6900}
# Clustering
NODE_NAME: ${NODE_NAME:-alexclaw@node1.local}
CLUSTER_COOKIE: ${CLUSTER_COOKIE:-alexclaw_default}
# Dynamic skills
SKILLS_DIR: /app/skills
volumes:
- skills_data:/app/skills
- ${BACKUP_DIR:-./backups}:/app/backups
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:5001/health || exit 1"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
web-automator:
build: ./web-automator
restart: unless-stopped
ports:
- "6080:6080"
environment:
DISPLAY: ":99"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:6900/health"]
interval: 10s
timeout: 5s
retries: 3
volumes:
pgdata:
skills_data: