-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
122 lines (114 loc) · 3.81 KB
/
Copy pathdocker-compose.yml
File metadata and controls
122 lines (114 loc) · 3.81 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
113
114
115
116
117
118
119
120
121
122
version: "3.9"
# SINT Protocol — local development / single-host deployment stack.
# Start everything: docker compose up --build
# Gateway only: docker compose up gateway postgres redis
services:
# ── SINT Policy Gateway ────────────────────────────────────────────────────
gateway:
build:
context: .
dockerfile: apps/gateway-server/Dockerfile
ports:
- "3100:3100"
environment:
SINT_PORT: "3100"
SINT_STORE: postgres
SINT_CACHE: redis
DATABASE_URL: postgresql://sint:sint@postgres:5432/sint
REDIS_URL: redis://redis:6379
SINT_LOG_LEVEL: info
# SINT_API_KEY: change-me-in-production
# SINT_MAX_TIER: T3_COMMIT
# SINT_REQUIRE_SIGNATURES: "false"
# SINT_RATE_LIMIT: "100"
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3100/v1/health"]
interval: 15s
timeout: 5s
start_period: 10s
retries: 5
restart: unless-stopped
# ── SINT Dashboard (React SPA via nginx) ───────────────────────────────────
dashboard:
build:
context: .
dockerfile: apps/dashboard/Dockerfile
ports:
- "3201:3201"
environment:
# VITE_GATEWAY_URL is baked at build time (ARG); set it as a build-arg
# if you need a custom public URL:
# docker compose build --build-arg VITE_GATEWAY_URL=https://gateway.example.com dashboard
NEXT_PUBLIC_GATEWAY_URL: http://gateway:3100 # kept for compatibility
depends_on:
gateway:
condition: service_healthy
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://localhost:3201/"]
interval: 15s
timeout: 5s
start_period: 5s
retries: 3
restart: unless-stopped
# ── SINT Operator Interface (Voice HUD via nginx) ─────────────────────────
sint-interface:
build:
context: .
dockerfile: apps/sint-interface/Dockerfile
ports:
- "3202:3202"
environment:
NEXT_PUBLIC_GATEWAY_URL: http://gateway:3100
depends_on:
gateway:
condition: service_healthy
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://localhost:3202/"]
interval: 15s
timeout: 5s
start_period: 5s
retries: 3
restart: unless-stopped
# ── PostgreSQL 16 ──────────────────────────────────────────────────────────
postgres:
image: postgres:16-alpine
environment:
POSTGRES_USER: sint
POSTGRES_PASSWORD: sint
POSTGRES_DB: sint
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
# Auto-run SQL migrations on first start
- ./packages/persistence/migrations:/docker-entrypoint-initdb.d:ro
healthcheck:
test: ["CMD-SHELL", "pg_isready -U sint -d sint"]
interval: 5s
timeout: 5s
start_period: 10s
retries: 5
restart: unless-stopped
# ── Redis 7 ────────────────────────────────────────────────────────────────
redis:
image: redis:7-alpine
ports:
- "6379:6379"
volumes:
- redisdata:/data
command: redis-server --appendonly yes
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
start_period: 5s
retries: 5
restart: unless-stopped
volumes:
pgdata:
redisdata: