-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathrender.yaml
More file actions
33 lines (31 loc) · 914 Bytes
/
render.yaml
File metadata and controls
33 lines (31 loc) · 914 Bytes
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
services:
- type: web
name: pirostack-web
env: docker
plan: free
region: singapore
envVars:
- key: DATABASE_URL
fromDatabase:
name: pirostack-db
property: connectionString
- key: SECRET_KEY
generateValue: true
- key: DEBUG
value: "False"
- key: ALLOWED_HOSTS
value: "hackathon-pirostack-1.onrender.com"
# 배포 전 DB 마이그레이션을 수행 (실패 시 배포 중단되어 안전함)
preDeployCommand: python manage.py migrate --noinput
# 서비스 시작 명령 (정적 파일 수집은 Docker 빌드 시 수행하도록 변경 추천)
dockerCommand: gunicorn --bind 0.0.0.0:8000 hackathon.wsgi:application
healthCheckPath: /healthz
databases:
- name: pirostack-db
plan: free
region: singapore
volumes:
- type: persist
name: media
mountPath: /app/media
sizeGB: 1