mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-09-11 14:36:35 +03:00
feat(porter): Add Porter.yaml files for backend and frontend services
This commit is contained in:
parent
5a70735036
commit
0239d5d19c
56
backend/Porter.yaml
Normal file
56
backend/Porter.yaml
Normal file
@ -0,0 +1,56 @@
|
||||
version: v2
|
||||
name: quivr-back
|
||||
services:
|
||||
- name: flower
|
||||
run: celery -A celery_worker flower -l info --port=5555
|
||||
type: web
|
||||
instances: 1
|
||||
cpuCores: 0.1
|
||||
ramMegabytes: 200
|
||||
terminationGracePeriodSeconds: 30
|
||||
port: 5555
|
||||
domains:
|
||||
- name: demo-flower.quivr.app
|
||||
sleep: false
|
||||
- name: quivr-backend
|
||||
run: uvicorn main:app --reload --host 0.0.0.0 --port 5050 --workers 6 --log-level
|
||||
info
|
||||
type: web
|
||||
instances: 2
|
||||
cpuCores: 1
|
||||
ramMegabytes: 2700
|
||||
terminationGracePeriodSeconds: 30
|
||||
port: 5050
|
||||
domains:
|
||||
- name: demo-api.quivr.app
|
||||
healthCheck:
|
||||
enabled: true
|
||||
httpPath: /healthz
|
||||
timeoutSeconds: 20
|
||||
initialDelaySeconds: 60
|
||||
sleep: false
|
||||
- name: quivr-beat
|
||||
run: celery -A celery_worker beat -l info
|
||||
type: worker
|
||||
instances: 1
|
||||
cpuCores: 0.1
|
||||
ramMegabytes: 200
|
||||
terminationGracePeriodSeconds: 30
|
||||
sleep: false
|
||||
- name: quivr-worker
|
||||
run: celery -A celery_worker worker -l info
|
||||
type: worker
|
||||
instances: 1
|
||||
cpuCores: 1
|
||||
ramMegabytes: 2030
|
||||
terminationGracePeriodSeconds: 30
|
||||
sleep: false
|
||||
build:
|
||||
context: ./backend/
|
||||
method: docker
|
||||
dockerfile: ./backend/Dockerfile
|
||||
envGroups:
|
||||
- preview
|
||||
autoRollback:
|
||||
enabled: false
|
||||
|
23
frontend/Porter.yaml
Normal file
23
frontend/Porter.yaml
Normal file
@ -0,0 +1,23 @@
|
||||
version: v2
|
||||
name: quivr-demo-front
|
||||
services:
|
||||
- name: quivr-frontend
|
||||
run: ""
|
||||
type: web
|
||||
instances: 1
|
||||
cpuCores: 0.2
|
||||
ramMegabytes: 240
|
||||
terminationGracePeriodSeconds: 30
|
||||
port: 3000
|
||||
domains:
|
||||
- name: demo.quivr.app
|
||||
sleep: false
|
||||
build:
|
||||
context: ./frontend
|
||||
method: docker
|
||||
dockerfile: ./frontend/Dockerfile
|
||||
envGroups:
|
||||
- preview-frontend
|
||||
autoRollback:
|
||||
enabled: false
|
||||
|
Loading…
Reference in New Issue
Block a user