Skip to content

Commit

Permalink
zess: Stop containers when interrupted
Browse files Browse the repository at this point in the history
  • Loading branch information
Topvennie committed Jun 11, 2024
1 parent 131d3cf commit 5718380
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions dev.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
#!/bin/sh

# Exit function

ctrl_c() {
echo "-------------------------------------"
echo "Stopping all containers..."
echo "-------------------------------------"
docker-compose -f docker-compose.yml stop
exit 0
}

trap ctrl_c INT

# Parse input

backend=false
Expand Down

0 comments on commit 5718380

Please sign in to comment.