#!/bin/bash
# Show room service status
#
# Usage:
#   ./status.sh
#
# This is a TEMPLATE. Copy to your room's ctrl/ and customize.

set -e

cd "$(dirname "$0")/.."

[ -f ".env" ] && source .env

NAME="${DEPLOYMENT_NAME:-room}"

echo "=== Docker Containers ==="
docker ps --format "table {{.Names}}\t{{.Status}}\t{{.Ports}}" | grep -E "($NAME|NAMES)" || echo "No containers running"

echo ""
echo "=== Networks ==="
docker network ls | grep -E "(${NETWORK_NAME:-$NAME}|NETWORK)" || echo "No matching networks"
