This commit is contained in:
nora 2022-08-30 21:44:34 +02:00
parent 6b5e8edce3
commit 96a8746f4c
3 changed files with 7 additions and 8 deletions

View file

@ -2,13 +2,12 @@
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
if docker inspect nginx > /dev/null 2>&1 ;
then
echo "Registry container exists already..."
else
docker run -d -p 8080:80 --restart=always --name nginx \
-v "$SCRIPT_DIR/nginx.conf:/etc/nginx/nginx.conf:ro" \
--net internal \
nginx:latest
-v "$SCRIPT_DIR/nginx.conf:/etc/nginx/nginx.conf:ro" \
--net internal \
nginx:latest
fi