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:
@@ -98,3 +98,34 @@ PAPERLESS_TOKEN=dummy-paperless-token-replace-with-real
|
|||||||
ACTUAL_SERVER_URL=https://actual.example.com
|
ACTUAL_SERVER_URL=https://actual.example.com
|
||||||
ACTUAL_PASSWORD=dummy-password-replace-with-real
|
ACTUAL_PASSWORD=dummy-password-replace-with-real
|
||||||
ACTUAL_BUDGET_SYNC_ID=dummy-budget-sync-id
|
ACTUAL_BUDGET_SYNC_ID=dummy-budget-sync-id
|
||||||
|
|
||||||
|
# Beszel
|
||||||
|
BESZEL_URL=https://beszel.example.com
|
||||||
|
BESZEL_USERNAME=dummy-username
|
||||||
|
BESZEL_PASSWORD=dummy-password-replace-with-real
|
||||||
|
|
||||||
|
# Gitea
|
||||||
|
GITEA_URL=https://gitea.example.com
|
||||||
|
GITEA_TOKEN=dummy-token-replace-with-real
|
||||||
|
|
||||||
|
# Grafana
|
||||||
|
GRAFANA_URL=https://grafana.example.com
|
||||||
|
GRAFANA_TOKEN=dummy-token-replace-with-real
|
||||||
|
|
||||||
|
# Home Assistant
|
||||||
|
HOMEASSISTANT_URL=https://ha.example.com
|
||||||
|
HOMEASSISTANT_TOKEN=dummy-token-replace-with-real
|
||||||
|
|
||||||
|
# Limesurvey
|
||||||
|
LIMESURVEY_URL=https://limesurvey.example.com
|
||||||
|
LIMESURVEY_USERNAME=admin
|
||||||
|
LIMESURVEY_PASSWORD=dummy-password-replace-with-real
|
||||||
|
|
||||||
|
# Linkwarden
|
||||||
|
LINKWARDEN_URL=https://linkwarden.example.com
|
||||||
|
LINKWARDEN_TOKEN=dummy-token-replace-with-real
|
||||||
|
|
||||||
|
# Superset
|
||||||
|
SUPERSET_URL=https://superset.example.com
|
||||||
|
SUPERSET_USERNAME=admin
|
||||||
|
SUPERSET_PASSWORD=dummy-password-replace-with-real
|
||||||
|
|||||||
+6
-6
@@ -65,7 +65,7 @@ build_service() {
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
echo -e "${GREEN}=== Building $service ===${NC}"
|
echo -e "${GREEN}=== Building $service ===${NC}"
|
||||||
docker compose build "$service"
|
docker compose --profile dev --profile ops build "$service"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Function to clean vendor directory
|
# Function to clean vendor directory
|
||||||
@@ -89,19 +89,19 @@ status() {
|
|||||||
# Function to validate MCP servers
|
# Function to validate MCP servers
|
||||||
validate() {
|
validate() {
|
||||||
echo -e "${GREEN}=== Validating MCP Servers ===${NC}"
|
echo -e "${GREEN}=== Validating MCP Servers ===${NC}"
|
||||||
./scripts/validate-mcp.sh
|
./scripts/validate-all.sh mcp
|
||||||
}
|
}
|
||||||
|
|
||||||
# Function to show logs
|
# Function to show logs
|
||||||
logs() {
|
logs() {
|
||||||
echo -e "${GREEN}=== Service Logs ===${NC}"
|
echo -e "${GREEN}=== Service Logs ===${NC}"
|
||||||
docker compose logs -f
|
docker compose --profile dev --profile ops logs -f
|
||||||
}
|
}
|
||||||
|
|
||||||
# Function to show process status
|
# Function to show process status
|
||||||
ps() {
|
ps() {
|
||||||
echo -e "${GREEN}=== Service Process Status ===${NC}"
|
echo -e "${GREEN}=== Service Process Status ===${NC}"
|
||||||
docker compose ps
|
docker compose --profile dev --profile ops ps
|
||||||
}
|
}
|
||||||
|
|
||||||
# Function to start services
|
# Function to start services
|
||||||
@@ -126,8 +126,8 @@ rebuild() {
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
echo -e "${GREEN}=== Rebuilding $service ===${NC}"
|
echo -e "${GREEN}=== Rebuilding $service ===${NC}"
|
||||||
docker compose build --no-cache "$service"
|
docker compose --profile dev --profile ops build --no-cache "$service"
|
||||||
docker compose up -d "$service"
|
docker compose --profile dev --profile ops up -d "$service"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Main script logic
|
# Main script logic
|
||||||
|
|||||||
+3
-3
@@ -20,13 +20,13 @@ echo ""
|
|||||||
# Change to project root (parent of scripts/)
|
# Change to project root (parent of scripts/)
|
||||||
cd "$(dirname "${BASH_SOURCE[0]}")/.."
|
cd "$(dirname "${BASH_SOURCE[0]}")/.."
|
||||||
|
|
||||||
# Get list of all services from docker-compose.yml
|
# Get list of all services from docker-compose.yml (include all profiles)
|
||||||
SERVICES=$(docker compose config --services)
|
SERVICES=$(docker compose --profile dev --profile ops config --services | sort)
|
||||||
|
|
||||||
# Build each service
|
# Build each service
|
||||||
for SERVICE in $SERVICES; do
|
for SERVICE in $SERVICES; do
|
||||||
echo -e "${BLUE}Building: ${SERVICE}${NC}"
|
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"
|
echo -e "${GREEN}✓${NC} Successfully built $SERVICE"
|
||||||
else
|
else
|
||||||
echo -e "${RED}✗${NC} Failed to build $SERVICE"
|
echo -e "${RED}✗${NC} Failed to build $SERVICE"
|
||||||
|
|||||||
@@ -18,8 +18,8 @@ echo ""
|
|||||||
# Change to project root (parent of scripts/)
|
# Change to project root (parent of scripts/)
|
||||||
cd "$(dirname "${BASH_SOURCE[0]}")/.."
|
cd "$(dirname "${BASH_SOURCE[0]}")/.."
|
||||||
|
|
||||||
# Get list of all services from docker-compose.yml
|
# Get list of all services from docker-compose.yml (include all profiles)
|
||||||
SERVICES=$(docker compose config --services | sort)
|
SERVICES=$(docker compose --profile dev --profile ops config --services | sort)
|
||||||
|
|
||||||
# Counters
|
# Counters
|
||||||
TOTAL=0
|
TOTAL=0
|
||||||
|
|||||||
Reference in New Issue
Block a user