-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathJustfile
More file actions
44 lines (28 loc) · 830 Bytes
/
Copy pathJustfile
File metadata and controls
44 lines (28 loc) · 830 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Start containers
up *args: lint
docker compose up {{ args }}
# Stop & remove containers
down *args:
docker compose down {{ args }}
# Re-build containers
build *args:
docker compose build {{ args }}
# Execute command in running container
exec *args:
docker compose exec {{ args }}
# Create temporary container & run command
run *args:
docker compose run -T --rm {{ args }}
# Show logs from container(s)
logs *args:
docker compose logs {{ args }}
# Create new Alembic migration
makemigrations MESSAGE="auto":
docker compose run -T --rm fastapi alembic revision --autogenerate -m "{{ MESSAGE }}"
# Apply Alembic migrations
migrate:
docker compose run -T --rm fastapi alembic upgrade head
# Format and check code
lint:
uv tool run ruff format .
uv tool run ruff check . --fix