feat: rate limiting
Python Lint CI / ruff-format-check (push) Successful in 44s
Python Lint CI / ty (push) Successful in 44s
Python Lint CI / ruff (push) Successful in 44s

This commit is contained in:
2026-07-03 15:33:06 +02:00
parent 92d2e7c3a0
commit 59a6f49700
6 changed files with 151 additions and 7 deletions
+16 -1
View File
@@ -3,6 +3,7 @@ networks:
volumes:
postgres-data:
redis-data:
services:
app:
@@ -14,13 +15,16 @@ services:
- APP_ENV=dev
- PORT=5000
- BIND=0.0.0.0
- DB_URL=postgres://tout-doux:tout-doux@postgres:5432/tout-doux
- DB_URI=postgres://tout-doux:tout-doux@postgres:5432/tout-doux
- CACHE_URI=redis://redis:6379
command: uv run tout-doux --debug
networks:
- backend
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
vite:
image: oven/bun:latest
@@ -58,3 +62,14 @@ services:
- "postgres-data:/var/lib/postgresql/data"
networks:
- backend
redis:
image: redis:8
healthcheck:
test: ["CMD", "redis-cli", "--raw", "incr", "ping"]
interval: 1s
retries: 20
volumes:
- redis-data:/data
networks:
- backend