Skip to content

Commit 5ff487f

Browse files
Docker-compose startup script update
1 parent 43c4a4e commit 5ff487f

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

contrib/docker-compose/nginx-dapi.sh

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ COMPOSE_HTTP_TIMEOUT=240 docker-compose -p $PROJECT_NAME -f $DOCKER_COMPOSE_YAML
5252
# Main
5353
#
5454

55-
DOCKER_COMPOSE_YAML=docker-compose.yaml
56-
PROJECT_NAME=nginx-dapi
55+
DOCKER_COMPOSE_YAML="docker-compose.yaml"
56+
PROJECT_NAME="nginx-dapi"
5757

5858
while getopts 'hc:' OPTION
5959
do
@@ -72,4 +72,11 @@ then
7272
usage
7373
fi
7474

75-
nginx_dapi_$ACTION
75+
case "$ACTION" in
76+
start)
77+
nginx_dapi_start
78+
;;
79+
stop)
80+
nginx_dapi_stop
81+
;;
82+
esac

0 commit comments

Comments
 (0)