-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
69 lines (65 loc) · 3 KB
/
Copy pathrender.yaml
File metadata and controls
69 lines (65 loc) · 3 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
# render.yaml — Render Blueprint
# Current live services:
# docket-web → https://docket-web-2cxk.onrender.com (React frontend)
# docket-api → https://smartshoppingdestination.onrender.com (Python AI — this is correct)
# docket-backend → NEEDS TO BE CREATED (C# .NET backend)
services:
# ──────────────────────────────────────────────────────────
# 1. Python AI Service (FastAPI + Tesseract OCR)
# Existing Render service: docket-api
# URL: https://smartshoppingdestination.onrender.com ✅ running
# ──────────────────────────────────────────────────────────
- type: web
name: docket-api
runtime: docker
dockerfilePath: ./ai-service/Dockerfile
dockerContext: ./ai-service
plan: free
healthCheckPath: /
envVars:
- key: PORT
value: 8000
# ──────────────────────────────────────────────────────────
# 2. C# .NET Backend API ← CREATE THIS NEW SERVICE
# URL will be: https://docket-backend.onrender.com
# ──────────────────────────────────────────────────────────
- type: web
name: docket-backend
runtime: docker
dockerfilePath: ./backend/Dockerfile
dockerContext: ./backend
plan: free
healthCheckPath: /api/catalog/search?q=milk
envVars:
- key: PYTHON_SERVICE_URL
value: https://smartshoppingdestination.onrender.com
- key: ASPNETCORE_ENVIRONMENT
value: Production
- key: ASPNETCORE_URLS
value: http://+:5100
# ──────────────────────────────────────────────────────────
# 3. React Frontend (Vite static site)
# Existing Render service: docket-web
# URL: https://docket-web-2cxk.onrender.com ← the website
# ──────────────────────────────────────────────────────────
- type: web
name: docket-web
runtime: static
buildCommand: cd frontend && npm install && npm run build
staticPublishPath: ./frontend/dist
pullRequestPreviewsEnabled: false
headers:
- path: /*
name: Cache-Control
value: public, max-age=0, must-revalidate
- path: /assets/*
name: Cache-Control
value: public, max-age=31536000, immutable
routes:
- type: rewrite
source: /*
destination: /index.html
envVars:
# Points frontend at the C# backend
- key: VITE_API_URL
value: https://docket-backend-jm71.onrender.com