hyper text transfer protocol secure

This commit is contained in:
nora 2022-09-01 20:19:04 +02:00
parent bd4e3059a3
commit 3a07e3f0cf
3 changed files with 16 additions and 4 deletions

View file

@ -6,8 +6,9 @@ if docker container inspect nginx > /dev/null 2>&1 ;
then
echo "nginx container exists already..."
else
docker run -d -p 80:80 --restart=always --name nginx \
docker run -d -p 80:80 -p 443:443 --restart=always --name nginx \
-v "$SCRIPT_DIR/nginx.conf:/etc/nginx/nginx.conf:ro" \
-v "/etc/letsencrypt:/etc/nginx/certs" \
--net internal \
nginx:latest
fi