From cd47855b9737fe1558776712f0631fa0075987ea Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Sat, 19 Oct 2019 17:41:22 -0600 Subject: [PATCH] add restart config on all normal executions --- ab-nginx.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ab-nginx.sh b/ab-nginx.sh index 74c93b4..b8750a0 100755 --- a/ab-nginx.sh +++ b/ab-nginx.sh @@ -185,6 +185,7 @@ if [ -z "$SSL_CERT" ]; then --env-file ab-nginx.params \ $vmount \ -p ${HTTP_PORT}:80 \ + --restart unless-stopped \ docker.asifbacchus.app/nginx/ab-nginx:latest fi # run with TLS1.2 @@ -212,6 +213,7 @@ elif [ "$SSL_CERT" ] && [ "$TLS13_ONLY" = FALSE ]; then -v "$SSL_CHAIN":/certs/chain.pem:ro \ -v "$DH":/certs/dhparam.pem:ro \ -p ${HTTP_PORT}:80 -p ${HTTPS_PORT}:443 \ + --restart unless-stopped \ docker.asifbacchus.app/nginx/ab-nginx:latest fi # run with TLS1.3 @@ -237,6 +239,7 @@ elif [ "$SSL_CERT" ] && [ "$TLS13_ONLY" = TRUE ]; then -v "$SSL_KEY":/certs/privkey.pem:ro \ -v "$SSL_CHAIN":/certs/chain.pem:ro \ -p ${HTTP_PORT}:80 -p ${HTTPS_PORT}:443 \ + --restart unless-stopped \ docker.asifbacchus.app/nginx/ab-nginx:latest fi fi