mirror of
https://github.com/Noratrieb/vps.git
synced 2026-01-14 16:55:00 +01:00
fmt
This commit is contained in:
parent
6b5e8edce3
commit
96a8746f4c
3 changed files with 7 additions and 8 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue