Files
tout-doux/compose.yml
T
klemek 59a6f49700
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
feat: rate limiting
2026-07-03 15:33:06 +02:00

76 lines
1.8 KiB
YAML

networks:
backend:
volumes:
postgres-data:
redis-data:
services:
app:
image: astral/uv:python3.14-alpine
volumes:
- .:/app
working_dir: /app
environment:
- APP_ENV=dev
- PORT=5000
- BIND=0.0.0.0
- 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
volumes:
- .:/app
working_dir: /app
command: bun run dev
ports:
- "5173:5173"
networks:
- backend
postgres:
image: postgres:17
healthcheck:
test:
[
"CMD-SHELL",
"pg_isready",
"-d",
"tout-doux",
"-U",
"tout-doux",
]
interval: 10s
timeout: 60s
retries: 3
start_period: 60s
environment:
- POSTGRES_DB=tout-doux
- POSTGRES_USER=tout-doux
- POSTGRES_PASSWORD=tout-doux
- PGDATA=/var/lib/postgresql/data/pgdata
volumes:
- "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