mirror of
https://github.com/Noratrieb/vps.git
synced 2026-01-14 08:45:02 +01:00
fmt
This commit is contained in:
parent
6b5e8edce3
commit
96a8746f4c
3 changed files with 7 additions and 8 deletions
|
|
@ -3,7 +3,7 @@ NET_NAME="internal"
|
|||
if docker network inspect "$NET_NAME" > /dev/null 2>&1 ;
|
||||
then
|
||||
echo "Network $NET_NAME exists already...";
|
||||
else
|
||||
else
|
||||
echo "Creating network $NET_NAME..."
|
||||
docker network create "$NET_NAME"
|
||||
fi
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
@ -7,7 +7,7 @@ then
|
|||
echo "Registry container exists already..."
|
||||
else
|
||||
docker run -d -p 5000:5000 --restart=always --name registry \
|
||||
-v "$SCRIPT_DIR/config.yml:/etc/docker/registry/config.yml" \
|
||||
--net internal \
|
||||
registry:2
|
||||
-v "$SCRIPT_DIR/config.yml:/etc/docker/registry/config.yml" \
|
||||
--net internal \
|
||||
registry:2
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue