-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
81 lines (77 loc) · 2.21 KB
/
docker-compose.yml
File metadata and controls
81 lines (77 loc) · 2.21 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
version: '3.8'
services:
# Main reDB Node service
redb-node:
build:
context: .
dockerfile: Dockerfile
container_name: redb-node
command: ["/opt/redb/entrypoint.sh"]
ports:
# HTTP API ports (for CLI and external access)
- "3000:3000" # dashboard (HTTP)
- "8080:8080" # clientapi (HTTP)
# Internal gRPC ports (not exposed externally)
- "50000:50000" # supervisor (internal)
- "50051:50051" # security (internal)
- "50052:50052" # unifiedmodel (internal)
- "50053:50053" # webhook (internal)
- "50054:50054" # transformation (internal)
- "50055:50055" # core (internal)
- "50056:50056" # mesh (internal)
- "50057:50057" # anchor (internal)
- "50058:50058" # integration (internal)
- "50059:50059" # clientapi gRPC (internal)
- "50060:50060" # mcpserver (internal)
environment:
# Database configuration (for external databases only)
# - REDB_POSTGRES_USER=postgres
# - REDB_POSTGRES_PASSWORD=postgres
# - REDB_POSTGRES_HOST=localhost
# - REDB_POSTGRES_PORT=5432
# - REDB_POSTGRES_DATABASE=postgres
# Keyring configuration for Docker
- REDB_KEYRING_PATH=/opt/redb/data/keyring.json
volumes:
# Persistent data storage
- redb_data:/opt/redb/data
- postgres_data:/var/lib/postgresql/data
- redis_data:/var/lib/redis
# Logs
- redb_logs:/opt/redb/logs
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
# CLI service for external access
redb-cli:
build:
context: .
dockerfile: Dockerfile.cli
container_name: redb-cli
environment:
# Point to the main node (using HTTP API port)
- REDB_NODE_URL=http://redb-node:8080
volumes:
# Mount config for CLI
- ./cli-config:/home/redb/.redb
depends_on:
- redb-node
profiles:
- cli
command: ["--help"]
volumes:
redb_data:
driver: local
postgres_data:
driver: local
redis_data:
driver: local
redb_logs:
driver: local
networks:
default:
name: redb-network