fix: bypass nginx and map gateway directly to 8281
This commit is contained in:
@@ -66,16 +66,7 @@ jobs:
|
|||||||
|
|
||||||
# 4.5. ?ˆê±°??컨테?´ë„ˆ ì²?†Œ (?¬íЏ ì¶©ë<C2A9>Œ ë°©ì?, Nginx ?œì™¸)
|
# 4.5. ?ˆê±°??컨테?´ë„ˆ ì²?†Œ (?¬íЏ ì¶©ë<C2A9>Œ ë°©ì?, Nginx ?œì™¸)
|
||||||
echo "Finding and killing legacy containers holding our ports..."
|
echo "Finding and killing legacy containers holding our ports..."
|
||||||
for port in 8281 8282 8283 8284 8285; do
|
|
||||||
cids=$(docker ps -q --filter "publish=$port")
|
|
||||||
for cid in $cids; do
|
|
||||||
cname=$(docker inspect --format '{{.Name}}' $cid)
|
|
||||||
if [[ "$cname" != *nginx* ]]; then
|
|
||||||
echo "Force killing legacy container $cname ($cid) using port $port"
|
|
||||||
docker rm -f $cid
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
done
|
|
||||||
|
|
||||||
# 4.6. Nginx 초기 ?¤ì • ë°?기ë<C2B0>™
|
# 4.6. Nginx 초기 ?¤ì • ë°?기ë<C2B0>™
|
||||||
mkdir -p ./nginx/conf.d
|
mkdir -p ./nginx/conf.d
|
||||||
@@ -125,3 +116,4 @@ jobs:
|
|||||||
|
|
||||||
echo "Blue-Green CI/CD Deploy Success! Currently running: $TARGET"
|
echo "Blue-Green CI/CD Deploy Success! Currently running: $TARGET"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -46,7 +46,6 @@ services:
|
|||||||
nginx:
|
nginx:
|
||||||
image: nginx:latest
|
image: nginx:latest
|
||||||
ports:
|
ports:
|
||||||
- "8281:8281"
|
|
||||||
- "8282:8282"
|
- "8282:8282"
|
||||||
- "8283:8283"
|
- "8283:8283"
|
||||||
- "8284:8284"
|
- "8284:8284"
|
||||||
@@ -277,3 +276,4 @@ services:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user