diff --git a/.idea/.idea.ab-nginx.dir/.idea/vcs.xml b/.idea/.idea.ab-nginx.dir/.idea/vcs.xml index 45577ff..a6dbafe 100644 --- a/.idea/.idea.ab-nginx.dir/.idea/vcs.xml +++ b/.idea/.idea.ab-nginx.dir/.idea/vcs.xml @@ -2,11 +2,18 @@ - + - + + + + diff --git a/helpers/ab-nginx.params.template b/helpers/ab-nginx.params.template index e5a5609..060ee58 100644 --- a/helpers/ab-nginx.params.template +++ b/helpers/ab-nginx.params.template @@ -6,6 +6,22 @@ ### +# +# Container options +# + +# Specify a particular tag to 'version pin' the ab-nginx container. +#TAG=latest + +# Specify a runtime UID and GID for the container user. This is useful to +# ensure the container can read and/or write to locations on the host or +# has access to files shared between members of a container stack. +# REQUIRED: NO +# DEFAULT: UID=8080, GID=8080 +# VALID OPTIONS: any permissible and available UID/GID value +#UID=8080 +#GID=8080 + # # Network options # diff --git a/helpers/ab-nginx.sh b/helpers/ab-nginx.sh index c9ffc10..e956ccc 100644 --- a/helpers/ab-nginx.sh +++ b/helpers/ab-nginx.sh @@ -231,7 +231,7 @@ if [ -z "$SSL_CERT" ]; then --network=${NETWORK} \ -p ${HTTP_PORT}:80 \ --restart unless-stopped \ - docker.asifbacchus.dev/nginx/ab-nginx:latest + docker.asifbacchus.dev/nginx/ab-nginx:${TAG:-latest} fi # run with TLS else @@ -251,7 +251,7 @@ else -v "$SSL_KEY":/certs/privkey.pem:ro \ -v "$SSL_CHAIN":/certs/chain.pem:ro \ -p ${HTTP_PORT}:80 -p ${HTTPS_PORT}:443 \ - docker.asifbacchus.dev/nginx/ab-nginx:latest /bin/sh + docker.asifbacchus.dev/nginx/ab-nginx:${TAG:-latest} /bin/sh else if [ "$TLS13_ONLY" = 'FALSE' ]; then printf "%s\nRunning NGINX on %s (TLS 1.2)...%s\n" "$cyan" "$container_name" "$norm" @@ -269,7 +269,7 @@ else -v "$SSL_CHAIN":/certs/chain.pem:ro \ -p ${HTTP_PORT}:80 -p ${HTTPS_PORT}:443 \ --restart unless-stopped \ - docker.asifbacchus.dev/nginx/ab-nginx:latest + docker.asifbacchus.dev/nginx/ab-nginx:${TAG:-latest} fi fi