add restart config on all normal executions

This commit is contained in:
Asif Bacchus 2019-10-19 17:41:22 -06:00
parent cea18e853c
commit cd47855b97

View File

@ -185,6 +185,7 @@ if [ -z "$SSL_CERT" ]; then
--env-file ab-nginx.params \ --env-file ab-nginx.params \
$vmount \ $vmount \
-p ${HTTP_PORT}:80 \ -p ${HTTP_PORT}:80 \
--restart unless-stopped \
docker.asifbacchus.app/nginx/ab-nginx:latest docker.asifbacchus.app/nginx/ab-nginx:latest
fi fi
# run with TLS1.2 # run with TLS1.2
@ -212,6 +213,7 @@ elif [ "$SSL_CERT" ] && [ "$TLS13_ONLY" = FALSE ]; then
-v "$SSL_CHAIN":/certs/chain.pem:ro \ -v "$SSL_CHAIN":/certs/chain.pem:ro \
-v "$DH":/certs/dhparam.pem:ro \ -v "$DH":/certs/dhparam.pem:ro \
-p ${HTTP_PORT}:80 -p ${HTTPS_PORT}:443 \ -p ${HTTP_PORT}:80 -p ${HTTPS_PORT}:443 \
--restart unless-stopped \
docker.asifbacchus.app/nginx/ab-nginx:latest docker.asifbacchus.app/nginx/ab-nginx:latest
fi fi
# run with TLS1.3 # run with TLS1.3
@ -237,6 +239,7 @@ elif [ "$SSL_CERT" ] && [ "$TLS13_ONLY" = TRUE ]; then
-v "$SSL_KEY":/certs/privkey.pem:ro \ -v "$SSL_KEY":/certs/privkey.pem:ro \
-v "$SSL_CHAIN":/certs/chain.pem:ro \ -v "$SSL_CHAIN":/certs/chain.pem:ro \
-p ${HTTP_PORT}:80 -p ${HTTPS_PORT}:443 \ -p ${HTTP_PORT}:80 -p ${HTTPS_PORT}:443 \
--restart unless-stopped \
docker.asifbacchus.app/nginx/ab-nginx:latest docker.asifbacchus.app/nginx/ab-nginx:latest
fi fi
fi fi