-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathapp.yaml.template
More file actions
81 lines (69 loc) · 2.85 KB
/
app.yaml.template
File metadata and controls
81 lines (69 loc) · 2.85 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
# =============================================================================
# Databricks App Configuration (TEMPLATE)
# =============================================================================
# Generated by: vibe2value configure
# Source: app.yaml.template
#
# This file is auto-generated. Edit user-config.yaml instead, then run:
# ./vibe2value configure
# =============================================================================
name: __APP_NAME__
description: "AI-Powered Development Workflow - Vibe Coding Workshop"
# Entry point
command:
- "python"
- "app.py"
# =============================================================================
# Environment Variables
# =============================================================================
env:
# Runtime
- name: PYTHONUNBUFFERED
value: "1"
- name: PORT
value: "8000"
# LLM Model endpoint
- name: DATABRICKS_SERVING_ENDPOINT
value: "__SERVING_ENDPOINT__"
# ---------------------------------------------------------------------------
# Lakebase PostgreSQL Configuration
# ---------------------------------------------------------------------------
# LAKEBASE_HOST: The PostgreSQL endpoint hostname.
# - Provisioned mode: hostname of the provisioned database instance
# (e.g., "my-instance.cloud.databricks.com")
# - Autoscaling mode: auto-discovered endpoint hostname
# (e.g., "ep-xxxx-yyyy.database.us-east-1.cloud.databricks.com")
# Set automatically by deploy.sh after Lakebase infrastructure is created.
- name: LAKEBASE_HOST
value: "__LAKEBASE_HOST__"
- name: LAKEBASE_DATABASE
value: "databricks_postgres"
- name: LAKEBASE_SCHEMA
value: "__LAKEBASE_SCHEMA__"
- name: LAKEBASE_PORT
value: "5432"
# NOTE: LAKEBASE_USER is NOT set here. When running on Databricks Apps,
# the app's service principal identity is used automatically.
# - Autoscaling mode: uses DATABRICKS_CLIENT_ID (injected by platform)
# - Provisioned mode: uses PGUSER (injected via resource link in Step 4c)
# Hardcoding a user email here causes auth failures.
# ENDPOINT_NAME: Lakebase Autoscaling endpoint resource path.
# Format: projects/{project_id}/branches/{branch_id}/endpoints/{endpoint_id}
# When set, the app uses Autoscaling mode with OAuth token rotation
# via the Databricks SDK (databricks-sdk generate_database_credential).
# When empty, the app falls back to Provisioned mode using PGPASSWORD
# injected by the Lakebase resource link.
- name: ENDPOINT_NAME
value: "__ENDPOINT_NAME__"
# Lakebase mode: "autoscaling" (default) or "provisioned"
- name: LAKEBASE_MODE
value: "__LAKEBASE_MODE__"
# Toggle Lakebase (set to "false" for YAML fallback)
- name: USE_LAKEBASE
value: "true"
# Health check endpoint
health_check:
path: /health
interval_seconds: 30
timeout_seconds: 10
failure_threshold: 3