feat(ci): Optimize the docker-compose-debug configuration (#365)

This commit is contained in:
Ryo
2025-07-31 10:40:39 +08:00
committed by GitHub
parent 71f6245a01
commit 30fd1b3e27
8 changed files with 232 additions and 46 deletions

View File

@ -21,7 +21,7 @@ debug: env middleware python server
env:
@if [ ! -f "$(ENV_FILE)" ]; then \
echo "Env file '$(ENV_FILE)' not found, using example env..."; \
cp ./docker/.env.example $(ENV_FILE); \
cp ./docker/.env.debug.example $(ENV_FILE); \
fi
fe:
@ -61,7 +61,7 @@ web:
@echo "Start web server in docker"
@docker compose -f docker/docker-compose.yml up -d
down:
down: env
@echo "Stop all docker containers"
@docker compose -f $(COMPOSE_FILE) --profile '*' down