-
Notifications
You must be signed in to change notification settings - Fork 235
Expand file tree
/
Copy pathapp.yaml
More file actions
72 lines (69 loc) · 2.1 KB
/
app.yaml
File metadata and controls
72 lines (69 loc) · 2.1 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
spec:
name: finmind
region: nyc
services:
- name: backend
dockerfile_path: packages/backend/Dockerfile
github:
repo: rohitdash08/FinMind
branch: main
deploy_on_push: true
http_port: 8000
instance_count: 1
instance_size_slug: basic-xxs
routes:
- path: /api
- path: /health
health_check:
http_path: /health
initial_delay_seconds: 15
period_seconds: 10
run_command: |
sh -c "python -m flask --app wsgi:app init-db && gunicorn --workers=2 --threads=4 --bind 0.0.0.0:8000 wsgi:app"
envs:
- key: DATABASE_URL
scope: RUN_TIME
value: ${db.DATABASE_URL}
- key: REDIS_URL
scope: RUN_TIME
type: SECRET
value: CHANGE_ME_SET_EXTERNAL_REDIS_URL
# DigitalOcean App Platform does not include managed Redis.
# Create a DO Managed Redis database or use Upstash (free tier),
# then replace this value in the App dashboard.
- key: JWT_SECRET
scope: RUN_TIME
type: SECRET
value: CHANGE_ME
- key: LOG_LEVEL
scope: RUN_TIME
value: INFO
- key: GEMINI_MODEL
scope: RUN_TIME
value: gemini-1.5-flash
- name: frontend
dockerfile_path: app/Dockerfile
github:
repo: rohitdash08/FinMind
branch: main
deploy_on_push: true
http_port: 80
instance_count: 1
instance_size_slug: basic-xxs
routes:
- path: /
envs:
- key: BACKEND_URL
scope: RUN_TIME
value: CHANGE_ME_SET_BACKEND_PUBLIC_URL
# Set this to the backend service's public URL after first deploy.
# Example: https://finmind-backend-xxxxx.ondigitalocean.app
databases:
- name: db
engine: PG
version: "16"
size: db-s-dev-database
num_nodes: 1
# Note: DigitalOcean App Platform does not offer managed Redis.
# Create a DigitalOcean Managed Redis database separately, or use
# Upstash (free tier available), then set REDIS_URL on the backend.