-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (30 loc) · 811 Bytes
/
Makefile
File metadata and controls
37 lines (30 loc) · 811 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
.PHONY: all up up-prod down logs clean ci
# Default target
all: up
# Start the full stack (App + Valkey) with live rebuilds
up:
docker compose up --build
# Run the production image from registry
# - Pulls latest image
# - Maps host port 14123 to container port 8000
# - --rm ensures container and anonymous volumes are deleted on exit
up-prod:
docker pull ghcr.io/mayurifag/tg-ai-manager:latest
docker run --rm -it \
-p 14123:8000 \
--env-file .env \
--name tg_ai_manager_prod \
ghcr.io/mayurifag/tg-ai-manager:latest
# Stop all containers
down:
docker compose down --remove-orphans
# View logs from docker containers
logs:
docker compose logs -f
# Clean up artifacts (optional)
clean:
rm -rf __pycache__
rm -rf cache/*
ci:
uv run --no-sync ruff format
uv run --no-sync ruff check --fix