-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
112 lines (107 loc) · 3.33 KB
/
Copy pathdocker-compose.yml
File metadata and controls
112 lines (107 loc) · 3.33 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
services:
# ── Database tier ────────────────────────────────────────────────
# Default: postgres:15-alpine. The HeliosDB-Nano migration is gated on
# upstream fixes for the bugs listed in docs/heliosdb-bugs.md
# (information_schema missing, scram/password auth broken,
# CREATE DATABASE not supported). Compose keeps both definitions; flip
# the app's DB_HOST to switch.
postgres:
image: postgres:15-alpine
container_name: claude-dashboard-db
restart: unless-stopped
environment:
POSTGRES_DB: claude_dashboard
POSTGRES_USER: claude
POSTGRES_PASSWORD: ${DB_PASSWORD:-claude_secure_pw_2024}
volumes:
- postgres_data:/var/lib/postgresql/data
- ./infrastructure/init-db.sql:/docker-entrypoint-initdb.d/init.sql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U claude"]
interval: 10s
timeout: 5s
retries: 5
networks:
- internal
# HeliosDB-Nano (preview, gated on bug fixes). Kept here so once the
# information_schema gap is closed, switching is one DB_HOST change.
heliosdb:
image: heliosdb-nano-v2:latest
container_name: claude-dashboard-heliosdb
profiles: ["heliosdb"] # only starts when explicitly enabled
restart: unless-stopped
command:
- start
- --data-dir=/data
- --listen=0.0.0.0
- --port=5432
- --auth=trust
environment:
HELIOSDB_DATA_DIR: /data
HELIOSDB_LOG_LEVEL: info
RUST_BACKTRACE: "1"
volumes:
- heliosdb_data:/data
networks:
- internal
redis:
image: redis:7-alpine
container_name: claude-dashboard-redis
restart: unless-stopped
volumes:
- redis_data:/data
command: redis-server --appendonly yes
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 3s
retries: 5
networks:
- internal
app:
build: .
container_name: claude-dashboard
restart: unless-stopped
environment:
NODE_ENV: production
PORT: "5000"
DB_HOST: postgres
DB_PORT: "5432"
DB_NAME: claude_dashboard
DB_USER: claude
DB_PASSWORD: ${DB_PASSWORD:-claude_secure_pw_2024}
REDIS_HOST: redis
REDIS_PORT: "6379"
JWT_SECRET: ${JWT_SECRET:-change_this_jwt_secret_in_production}
JWT_REFRESH_SECRET: ${JWT_REFRESH_SECRET:-change_this_refresh_secret_in_production}
CB_API_URL: http://host.docker.internal:3848
CB_API_KEY: ${CB_API_KEY:-}
SPEECHMATICS_API_KEY: ${SPEECHMATICS_API_KEY:-}
PROJECTS_BASE_PATH: /app/projects
# Tmux integration: socket lives at /tmp/tmux-1001/default on the host.
TMUX_SOCKET: /tmp/tmux-1001/default
TMUX_HOST_UID: "1001"
volumes:
- ${PROJECTS_PATH:-./projects}:/app/projects
- /tmp/tmux-1001:/tmp/tmux-1001
- ./scripts:/app/scripts:ro
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
networks:
- internal
- management-network
volumes:
heliosdb_data:
redis_data:
# Legacy — kept until the old Postgres container is decommissioned.
postgres_data:
networks:
internal:
driver: bridge
management-network:
external: true