fix: add profile flags to all docker compose commands and complete env vars

All services in docker-compose.yml are behind profiles (dev/ops), but the
maintenance scripts called docker compose without --profile, so no services
were detected or built. Added --profile dev --profile ops to BuildAll.sh,
StatusCheck.sh, and all relevant maintenance.sh commands.

Also:
- Added missing env vars for 8 newer servers to .env.example (beszel, gitea,
  grafana, ha, limesurvey, linkwarden, superset)
- Fixed maintenance.sh validate to use validate-all.sh instead of nonexistent
  validate-mcp.sh
This commit is contained in:
2026-07-30 12:15:49 -05:00
parent b3a810ba07
commit b595e26d62
4 changed files with 42 additions and 11 deletions
+3 -3
View File
@@ -20,13 +20,13 @@ echo ""
# Change to project root (parent of scripts/)
cd "$(dirname "${BASH_SOURCE[0]}")/.."
# Get list of all services from docker-compose.yml
SERVICES=$(docker compose config --services)
# Get list of all services from docker-compose.yml (include all profiles)
SERVICES=$(docker compose --profile dev --profile ops config --services | sort)
# Build each service
for SERVICE in $SERVICES; do
echo -e "${BLUE}Building: ${SERVICE}${NC}"
if docker compose build "$SERVICE" 2>&1 | tail -5; then
if docker compose --profile dev --profile ops build "$SERVICE" 2>&1 | tail -5; then
echo -e "${GREEN}${NC} Successfully built $SERVICE"
else
echo -e "${RED}${NC} Failed to build $SERVICE"