-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
54 lines (53 loc) · 1.13 KB
/
render.yaml
File metadata and controls
54 lines (53 loc) · 1.13 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:
# PostgreSQL Database
- type: pserv
name: fast-api-db
env: docker
plan: starter
region: oregon
ipAllowList: []
databases:
- name: fastapi_db
user: fastapi_user
# Web Service
- type: web
name: fast-api-example
env: python
runtime: python-3.12
plan: starter
region: oregon
branch: main
buildCommand: |
pip install --upgrade pip
pip install -r requirements.txt
startCommand: |
alembic upgrade head
uvicorn app.main:app --host 0.0.0.0 --port $PORT
autoDeploy: true
rootDir: .
healthCheckPath: /
envVars:
- key: DATABASE_URL
fromDatabase:
name: fast-api-db
property: connectionString
- key: SECRET_KEY
generateValue: true
- key: ALGORITHM
value: HS256
- key: ACCESS_TOKEN_EXPIRE_MINUTES
value: 30
- key: PYTHON_VERSION
value: 3.12.0
ignoredPaths:
- README.md
- "*.md"
- docs/**
- .github/**
- tests/**
- .gitignore
- __pycache__/**
- "*.pyc"
- venv/**
- reports/**
- ".env*"