Add 3 roles, settings for marathons

This commit is contained in:
2025-12-14 20:21:56 +07:00
parent bb9e9a6e1d
commit d0b8eca600
28 changed files with 1679 additions and 290 deletions

View File

@@ -17,7 +17,11 @@ help:
@echo ""
@echo " Build:"
@echo " make build - Build all containers (with cache)"
@echo " make build-no-cache - Rebuild all containers (no cache)"
@echo " make build-no-cache - Build all containers (no cache)"
@echo " make reup - Rebuild with cache: down + build + up"
@echo " make rebuild - Full rebuild: down + build --no-cache + up"
@echo " make rebuild-frontend - Rebuild only frontend"
@echo " make rebuild-backend - Rebuild only backend"
@echo ""
@echo " Database:"
@echo " make migrate - Run database migrations"
@@ -60,12 +64,28 @@ build:
build-no-cache:
$(DC) build --no-cache
reup:
$(DC) down
$(DC) build
$(DC) up -d
rebuild:
$(DC) down
$(DC) build --no-cache
$(DC) up -d
rebuild-frontend:
$(DC) down
sudo docker rmi marathon-frontend || true
$(DC) build --no-cache frontend
$(DC) up -d
rebuild-backend:
$(DC) down
sudo docker rmi marathon-backend || true
$(DC) build --no-cache backend
$(DC) up -d
# Database
migrate:
$(DC) exec backend alembic upgrade head