feat: allow to reset to rotation

This commit is contained in:
jfmcarreira committed 2026-10-06 02:12:18 +01:00
1 parent 2c3e038161
commit 048e80ddba
15 files changed
+549 -74

No files matched your search

+8 -4
View File
@@ -6,17 +6,18 @@ services:
build:
context: .
target: dev
container_name: bar-rota-dev
env_file:
- path: .env
required: false
ports:
- "8000:8000"
- "${PORT:-8000}:8000"
volumes:
- ./app:/app/app
- ./tests:/app/tests
- ./migrations:/app/migrations
- ./alembic.ini:/app/alembic.ini:ro
- ${DATA_DIR:-./data}:/app/data
command: ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
command: ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000", "--reload", "--reload-dir", "app", "--reload-dir", "migrations"]
checks:
build:
@@ -28,9 +29,12 @@ services:
SECRET_KEY: test-only-secret-key
DATABASE_URL: sqlite:///./data/test.db
INITIAL_ADMIN_PASSWORD: test-only-password
SMTP_HOST: ""
PYTHONPATH: /app
volumes:
- ./app:/app/app
- ./tests:/app/tests
- ./pyproject.toml:/app/pyproject.toml:ro
command: ["sh", "-c", "python -m compileall -q app && pytest -ra"]
- ./migrations:/app/migrations:ro
- ./alembic.ini:/app/alembic.ini:ro
command: ["sh", "-c", "python -m compileall -q app && pytest -ra"]