-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
73 lines (70 loc) · 2.75 KB
/
Copy pathdocker-compose.yml
File metadata and controls
73 lines (70 loc) · 2.75 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
services:
app:
build:
context: .
dockerfile: Dockerfile
ports:
- "3000:3000"
environment:
- OPENAI_API_KEY=${OPENAI_API_KEY}
- OPENAI_MODEL=${OPENAI_MODEL:-gpt-5.6-sol}
# Optional; gpt-5 / o-series only. none|minimal|low|medium|high|xhigh|max
- OPENAI_REASONING_EFFORT=${OPENAI_REASONING_EFFORT:-}
- DEMO_RATE_LIMIT=${DEMO_RATE_LIMIT:-}
- TRUSTED_PROXIES=${TRUSTED_PROXIES:-}
# Authentication (optional - set all AUTH_OIDC_* vars to enable)
- AUTH_OIDC_ISSUER=${AUTH_OIDC_ISSUER:-}
- AUTH_OIDC_CLIENT_ID=${AUTH_OIDC_CLIENT_ID:-}
- AUTH_OIDC_CLIENT_SECRET=${AUTH_OIDC_CLIENT_SECRET:-}
- AUTH_SECRET=${AUTH_SECRET:-}
- AUTH_ADMIN_GROUP=${AUTH_ADMIN_GROUP:-dataquery-admins}
# Reverse-proxy / public-URL vars. Required when the app runs behind a
# TLS-terminating proxy so Auth.js v5 builds OIDC callback URLs for the
# public hostname (set AUTH_URL to the https origin) instead of
# localhost:3000. NEXTAUTH_URL is the legacy alias next-auth/jwt's
# getToken() still reads. Default empty -> direct localhost use is unchanged.
- AUTH_URL=${AUTH_URL:-}
- AUTH_TRUST_HOST=${AUTH_TRUST_HOST:-}
- NEXTAUTH_URL=${NEXTAUTH_URL:-}
# App database connection (built from the credentials below)
- APP_DATABASE_URL=postgres://${APP_DB_USER:-dataquery}:${APP_DB_PASSWORD:-dataquery}@app-db:5432/${APP_DB_NAME:-dataquery_app}
# Encryption key for stored passwords (required when auth is enabled)
- APP_ENCRYPTION_KEY=${APP_ENCRYPTION_KEY:-}
volumes:
- ./config:/app/config:ro
depends_on:
app-db:
condition: service_healthy
restart: unless-stopped
# PostgreSQL database for app data (connections, schemas, reports, users)
app-db:
image: postgres:15-alpine
environment:
- POSTGRES_USER=${APP_DB_USER:-dataquery}
- POSTGRES_PASSWORD=${APP_DB_PASSWORD:-dataquery}
- POSTGRES_DB=${APP_DB_NAME:-dataquery_app}
volumes:
- app_db_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${APP_DB_USER:-dataquery} -d ${APP_DB_NAME:-dataquery_app}"]
interval: 5s
timeout: 3s
retries: 5
restart: unless-stopped
# Optional: demo PostgreSQL database with sample data
# Uncomment to include a demo database for testing queries
# demo-db:
# image: postgres:15-alpine
# ports:
# - "5433:5432"
# environment:
# - POSTGRES_USER=demo
# - POSTGRES_PASSWORD=demo123
# - POSTGRES_DB=cloudmetrics
# volumes:
# - demo_db_data:/var/lib/postgresql/data
# - ./scripts/demo-database.sql:/docker-entrypoint-initdb.d/init.sql
# restart: unless-stopped
volumes:
app_db_data:
# demo_db_data: