mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-09-11 14:36:35 +03:00
feat(supabase): upgraded to latest version
This commit is contained in:
parent
22452ac26f
commit
4c89812832
@ -30,6 +30,7 @@ class UserUsage(Repository):
|
|||||||
"""
|
"""
|
||||||
Check if the user is a premium user
|
Check if the user is a premium user
|
||||||
"""
|
"""
|
||||||
|
matching_customers = None
|
||||||
try:
|
try:
|
||||||
user_email_customer = (
|
user_email_customer = (
|
||||||
self.db.from_("users")
|
self.db.from_("users")
|
||||||
@ -48,6 +49,7 @@ class UserUsage(Repository):
|
|||||||
.execute()
|
.execute()
|
||||||
).data
|
).data
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
logger.info(matching_customers)
|
||||||
logger.error("Error while checking if user is a premium user")
|
logger.error("Error while checking if user is a premium user")
|
||||||
logger.error(e)
|
logger.error(e)
|
||||||
return False
|
return False
|
||||||
|
@ -28,11 +28,14 @@ services:
|
|||||||
- .env
|
- .env
|
||||||
build:
|
build:
|
||||||
context: backend
|
context: backend
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile.dev
|
||||||
container_name: backend-core
|
container_name: backend-core
|
||||||
|
healthcheck:
|
||||||
|
test: [ "CMD", "curl", "http://localhost:5050/healthz" ]
|
||||||
command:
|
command:
|
||||||
- "uvicorn"
|
- "uvicorn"
|
||||||
- "main:app"
|
- "main:app"
|
||||||
|
- "--reload"
|
||||||
- "--host"
|
- "--host"
|
||||||
- "0.0.0.0"
|
- "0.0.0.0"
|
||||||
- "--port"
|
- "--port"
|
||||||
@ -40,6 +43,8 @@ services:
|
|||||||
- "--workers"
|
- "--workers"
|
||||||
- "1"
|
- "1"
|
||||||
restart: always
|
restart: always
|
||||||
|
volumes:
|
||||||
|
- ./backend/:/code/
|
||||||
depends_on:
|
depends_on:
|
||||||
db:
|
db:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
@ -65,7 +70,7 @@ services:
|
|||||||
- .env
|
- .env
|
||||||
build:
|
build:
|
||||||
context: backend
|
context: backend
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile.dev
|
||||||
container_name: worker
|
container_name: worker
|
||||||
command: celery -A celery_worker worker -l info
|
command: celery -A celery_worker worker -l info
|
||||||
restart: always
|
restart: always
|
||||||
@ -80,7 +85,7 @@ services:
|
|||||||
- .env
|
- .env
|
||||||
build:
|
build:
|
||||||
context: backend
|
context: backend
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile.dev
|
||||||
container_name: beat
|
container_name: beat
|
||||||
command: celery -A celery_worker beat -l info
|
command: celery -A celery_worker beat -l info
|
||||||
restart: always
|
restart: always
|
||||||
@ -94,7 +99,7 @@ services:
|
|||||||
- .env
|
- .env
|
||||||
build:
|
build:
|
||||||
context: backend
|
context: backend
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile.dev
|
||||||
container_name: flower
|
container_name: flower
|
||||||
command: celery -A celery_worker flower -l info --port=5555
|
command: celery -A celery_worker flower -l info --port=5555
|
||||||
restart: always
|
restart: always
|
||||||
@ -443,7 +448,7 @@ services:
|
|||||||
# Comment out everything below this point if you are using an external Postgres database
|
# Comment out everything below this point if you are using an external Postgres database
|
||||||
db:
|
db:
|
||||||
container_name: supabase-db
|
container_name: supabase-db
|
||||||
image: supabase/postgres:15.1.0.117
|
image: supabase/postgres:15.1.0.136
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: pg_isready -U postgres -h localhost
|
test: pg_isready -U postgres -h localhost
|
||||||
interval: 5s
|
interval: 5s
|
||||||
|
Loading…
Reference in New Issue
Block a user