fix configs

This commit is contained in:
user committed 2025-09-19 19:36:50 +03:00
1 parent fe793bf978
commit 68ed014b74
2 files changed
+11 -1

No files matched your search

+8 -1
View File
@@ -12,7 +12,7 @@ COMPOSE := $(DOCKER_COMPOSE_BIN) --env-file $(ENV_FILE) -p $(COMPOSE_PROJECT) -f
CONTAINER_NAME = $(COMPOSE_PROJECT)-$(SERVICE)-1
ENV_REQUIRED := TELEGRAM_API_KEY CLIENT_TELEGRAM_API_KEY POSTGRES_DB POSTGRES_USER POSTGRES_PASSWORD DATABASE_URL SANIC_PORT BACKEND_HTTP_PORT
.PHONY: help bootstrap start up down stop restart build ps status logs logs-% tail tail-% shell shell-% env-check clean clean-images destroy nuke prune data-paths
.PHONY: help bootstrap start up down stop restart build ps status logs logs-% tail tail-% shell shell-% env-check reset-config clean clean-images destroy nuke prune data-paths
help:
@echo "Available targets:"
@@ -26,6 +26,7 @@ help:
@echo " make shell SERVICE=x # open bash inside service"
@echo " make clean # remove containers, keep data"
@echo " make destroy CONFIRM=1# nuke containers + volumes + data"
@echo " make reset-config # remove .env/.bak and swarm key"
@echo " make env-check # validate critical .env entries"
bootstrap start:
@@ -88,6 +89,12 @@ env-check:
exit 1; \
fi
reset-config:
rm -f $(ENV_FILE) $(ENV_FILE).bak
rm -f ipfs/swarm.key
@echo "Configuration artifacts removed. Next run make bootstrap."
clean:
$(COMPOSE) down --remove-orphans