use env variable for cache duration + limit API to logged in user only

This commit is contained in:
2024-05-17 19:24:28 +02:00
parent 4c39fed29b
commit ba6f877b4b
9 changed files with 31 additions and 13 deletions

View File

@@ -13,6 +13,7 @@ services:
- ./sde:/app/sde
- ./authentication:/app/authentication
- ./manage.py:/app/manage.py
- ./static:/app/static
command: sh -c "python manage.py makemigrations && python manage.py migrate"
depends_on:
db:
@@ -32,6 +33,7 @@ services:
- ./authentication:/app/authentication
- ./manage.py:/app/manage.py
- ./static_eve:/app/static_eve
- ./static:/app/static
command: ["uvicorn", "marbas.asgi:application", "--host", "0.0.0.0", "--port", "8000", "--reload"]
healthcheck:
test: python manage.py health_check