-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
54 lines (52 loc) · 1.54 KB
/
Copy pathcompose.yaml
File metadata and controls
54 lines (52 loc) · 1.54 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
services:
backend:
build:
context: .
dockerfile: ./backend/Dockerfile
restart: unless-stopped
environment:
ENVIRONMENT: development
GROQ_API_KEY: ${GROQ_API_KEY:?GROQ_API_KEY is required}
# Use DATABASE_URL for Supabase/cloud PG (recommended), or individual DB_* fields for local PG
DATABASE_URL: ${DATABASE_URL:-}
DB_HOST: ${DB_HOST:-127.0.0.1}
DB_PORT: ${DB_PORT:-5432}
DB_USER: ${DB_USER:-postgres}
DB_PASSWORD: ${DB_PASSWORD:-}
DB_NAME: ${DB_NAME:-datalens}
UPSTASH_REDIS_REST_URL: ${UPSTASH_REDIS_REST_URL:-}
UPSTASH_REDIS_REST_TOKEN: ${UPSTASH_REDIS_REST_TOKEN:-}
MAX_UPLOAD_MB: ${MAX_UPLOAD_MB:-100}
CORS_ORIGINS: http://localhost:3000,http://127.0.0.1:3000
ports:
- "8000:8000"
volumes:
- backend_data:/app/data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 15s
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
restart: unless-stopped
environment:
NODE_ENV: production
NEXT_PUBLIC_API_URL: ${NEXT_PUBLIC_API_URL:-http://localhost:8000}
NEXT_PUBLIC_WS_URL: ${NEXT_PUBLIC_WS_URL:-ws://localhost:8000}
depends_on:
backend:
condition: service_started
ports:
- "3000:3000"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 15s
volumes:
backend_data: