#!/bin/bash container_name="nginx" if [ "$1" = "start" ]; then docker compose up -d elif [ "$1" = "stop" ]; then docker compose down elif [ "$1" = "restart" ]; then docker restart $container_name elif [ "$1" = "reload" ]; then docker exec -i $container_name service nginx reload elif [ "$1" = "status" ]; then docker exec -i $container_name service nginx status else echo "Usage: $0 [start|stop|restart|reload|status]" fi