-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (39 loc) · 1.43 KB
/
Copy pathdocker-compose.yml
File metadata and controls
41 lines (39 loc) · 1.43 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
services:
postgres:
image: postgres:16-alpine
environment:
- POSTGRES_USER=app
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-changeme}
- POSTGRES_DB=sin_webui
volumes:
- postgres-data:/var/lib/postgresql/data
- ./scripts/001_init.sql:/docker-entrypoint-initdb.d/001-init.sql:ro
- ./scripts/002_users.sql:/docker-entrypoint-initdb.d/002-users.sql:ro
- ./scripts/003_shares.sql:/docker-entrypoint-initdb.d/003-shares.sql:ro
- ./scripts/004_workspaces.sql:/docker-entrypoint-initdb.d/004-workspaces.sql:ro
- ./scripts/better-auth-schema.sql:/docker-entrypoint-initdb.d/010-better-auth-schema.sql:ro
healthcheck:
test: ["CMD-SHELL", "pg_isready -U app -d sin_webui"]
interval: 5s
timeout: 5s
retries: 10
start_period: 10s
webui:
build: .
ports:
- "3100:3000"
depends_on:
postgres:
condition: service_healthy
environment:
- AI_GATEWAY_API_KEY=${AI_GATEWAY_API_KEY}
- SIN_CHAT_MODEL=${SIN_CHAT_MODEL:-openai/gpt-5-mini}
- SIN_CODE_BIN=/usr/local/bin/sin-code
- DATABASE_URL=postgresql://app:${POSTGRES_PASSWORD:-changeme}@postgres:5432/sin_webui?sslmode=disable
- BETTER_AUTH_SECRET=${BETTER_AUTH_SECRET:-changeme-insecure-dev-secret-32chars-min}
- BETTER_AUTH_URL=${BETTER_AUTH_URL:-http://localhost:3100}
volumes:
- sin-webui-data:/app/.sin-webui
volumes:
postgres-data:
sin-webui-data: