feat: rate limiting
This commit is contained in:
+16
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user