Skip to content

Commit e9a01c0

Browse files
committed
modified bash script
1 parent 5ea7b98 commit e9a01c0

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

laradock.sh

100644100755
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
if [[ $# -eq 0 ]] ; then
3+
echo "Missing arguments. Please specify 'up' or 'down'.";
4+
exit 1
5+
fi
6+
7+
if [[ $1 -eq "up" ]] ; then
8+
echo "Initializing Docker Sync";
9+
docker-sync start;
10+
echo "Initializing Docker Compose";
11+
docker-compose -f docker-compose.yml -f docker-compose.sync.yml -d nginx mysql;
12+
else
13+
echo "Stopping Docker Compose";
14+
docker-compose down;
15+
echo "Stopping Docker Sync";
16+
docker-sync start;
17+
fi

0 commit comments

Comments
 (0)