#!/bin/bash # 로그 확인 스크립트 SERVICE=$1 if [ -z "$SERVICE" ]; then echo "전체 서비스 로그:" echo "" if docker compose version &> /dev/null; then docker compose logs --tail=100 -f else docker-compose logs --tail=100 -f fi else echo "$SERVICE 서비스 로그:" echo "" if docker compose version &> /dev/null; then docker compose logs --tail=100 -f $SERVICE else docker-compose logs --tail=100 -f $SERVICE fi fi