Include nginx in deploy_all.sh
This commit is contained in:
parent
74ecad6280
commit
5a7bc51ff4
@ -2,7 +2,6 @@
|
||||
node_modules
|
||||
npm-debug.log
|
||||
|
||||
build*
|
||||
dist
|
||||
data/*
|
||||
*.env*
|
||||
|
2
.env
2
.env
@ -2,4 +2,4 @@ CORS_ALLOWED_ORIGINS=https://dev1.aptivaai.com,http://34.16.120.118:3000,http://
|
||||
SERVER1_PORT=5000
|
||||
SERVER2_PORT=5001
|
||||
SERVER3_PORT=5002
|
||||
IMG_TAG=202507311843
|
||||
IMG_TAG=202508011118
|
3
Dockerfile.nginx
Normal file
3
Dockerfile.nginx
Normal file
@ -0,0 +1,3 @@
|
||||
FROM nginx:1.25-alpine
|
||||
COPY build/ /usr/share/nginx/html
|
||||
COPY nginx.conf /etc/nginx/nginx.conf
|
@ -28,7 +28,7 @@ npm run build
|
||||
TAG=$(date -u +%Y%m%d%H%M)
|
||||
echo "🔨 Building & pushing containers (tag = ${TAG})"
|
||||
|
||||
for svc in server1 server2 server3; do
|
||||
for svc in server1 server2 server3 nginx; do
|
||||
docker build -f Dockerfile."$svc" -t "${REG}/${svc}:${TAG}" .
|
||||
docker push "${REG}/${svc}:${TAG}"
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user