mirror of
https://github.com/Noratrieb/vps.git
synced 2026-01-14 16:55:00 +01:00
hyper text transfer protocol secure
This commit is contained in:
parent
bd4e3059a3
commit
3a07e3f0cf
3 changed files with 16 additions and 4 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue