-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
65 lines (62 loc) · 2.29 KB
/
Copy pathrender.yaml
File metadata and controls
65 lines (62 loc) · 2.29 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
# Render Blueprint for AIVS Instagram Scraper
# Infrastructure as Code configuration
services:
# Redis Service (for Celery broker)
- type: redis
name: aivs-redis
region: oregon
plan: free
maxmemoryPolicy: noeviction
ipAllowList: [] # Allow all IPs (required for free tier)
# Web Service (Flask API + Celery Worker Combined)
- type: web
name: aivs-instagram-scraper-api
region: oregon
runtime: python
plan: free
branch: main
buildCommand: pip install -r requirements.txt
startCommand: bash start_combined.sh
healthCheckPath: /healthz
envVars:
- key: PYTHON_VERSION
value: 3.11.7
- key: FLASK_ENV
value: production
- key: PORT
value: 10000
- key: REDIS_URL
fromService:
type: redis
name: aivs-redis
property: connectionString
- key: SUPABASE_URL
sync: false # Set manually in Render dashboard
- key: SUPABASE_SERVICE_ROLE_KEY
sync: false # Set manually in Render dashboard
- key: APIFY_API_KEY
sync: false # Set manually in Render dashboard
# Platform-specific Apify Actor IDs (for multi-platform support)
- key: INSTAGRAM_APIFY_ACTOR_ID
sync: false # Set manually in Render dashboard
- key: TIKTOK_APIFY_ACTOR_ID
sync: false # Set manually in Render dashboard (optional - TikTok scraping)
- key: THREADS_APIFY_ACTOR_ID
sync: false # Set manually in Render dashboard (optional - Threads scraping)
- key: X_APIFY_ACTOR_ID
sync: false # Set manually in Render dashboard (optional - X/Twitter scraping)
- key: AIRTABLE_ACCESS_TOKEN
sync: false # Set manually in Render dashboard
- key: AIRTABLE_BASE_ID
sync: false # Set manually in Render dashboard
- key: NUM_VA_TABLES
value: 80
- key: ALLOWED_ORIGINS
value: "*" # Update with your frontend URL in production
- key: SENTRY_DSN
sync: false # Optional: Set if using Sentry
# Note: After deploying, you must manually set the environment variables marked with "sync: false"
# in the Render dashboard.
#
# FREE TIER NOTE: Worker service removed - Celery runs alongside Flask in the web service
# to stay within Render's free tier limits (1 free web service per account)