환경 수정정
This commit is contained in:
@@ -10,8 +10,6 @@ services:
|
|||||||
# ports: # Traefik will handle exposing the service
|
# ports: # Traefik will handle exposing the service
|
||||||
stdin_open: true
|
stdin_open: true
|
||||||
tty: true
|
tty: true
|
||||||
depends_on:
|
|
||||||
- bns_system-db
|
|
||||||
environment:
|
environment:
|
||||||
CATALINA_OPTS: >-
|
CATALINA_OPTS: >-
|
||||||
-DDB_URL=${DB_URL}
|
-DDB_URL=${DB_URL}
|
||||||
@@ -29,23 +27,6 @@ services:
|
|||||||
- traefik.http.routers.bns_system.tls.certresolver=le
|
- traefik.http.routers.bns_system.tls.certresolver=le
|
||||||
- traefik.http.services.bns_system.loadbalancer.server.port=8080
|
- traefik.http.services.bns_system.loadbalancer.server.port=8080
|
||||||
|
|
||||||
bns_system-db:
|
|
||||||
image: dockerhub.wace.me/postgres:16.8-alpine3.21.linux
|
|
||||||
container_name: bns_system-db
|
|
||||||
restart: always
|
|
||||||
env_file:
|
|
||||||
- .env.production
|
|
||||||
volumes:
|
|
||||||
- /home/bns_system/postgres_data:/var/lib/postgresql/data
|
|
||||||
|
|
||||||
ports:
|
|
||||||
- "11134:5432"
|
|
||||||
healthcheck:
|
|
||||||
test: ["CMD-SHELL", "pg_isready -U postgres -d waceplm"]
|
|
||||||
interval: 10s
|
|
||||||
timeout: 5s
|
|
||||||
retries: 5
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
default:
|
default:
|
||||||
external:
|
external:
|
||||||
|
|||||||
@@ -1,17 +1,17 @@
|
|||||||
# PLM ILSHIN 운영환경 설정
|
# BNS System 운영환경 설정
|
||||||
|
|
||||||
# 애플리케이션 환경
|
# 애플리케이션 환경
|
||||||
NODE_ENV=production
|
NODE_ENV=production
|
||||||
|
|
||||||
# 데이터베이스 설정
|
# 데이터베이스 설정 - wace-plm-db의 bns_system 데이터베이스 연결
|
||||||
DB_URL=jdbc:postgresql://localhost:5432/ilshin
|
DB_URL=jdbc:postgresql://171.20.0.51:11333/bns_system
|
||||||
DB_USERNAME=postgres
|
DB_USERNAME=postgres
|
||||||
DB_PASSWORD=your_production_password
|
DB_PASSWORD=waceplm0909!!
|
||||||
|
|
||||||
# PostgreSQL 환경 변수
|
# PostgreSQL 환경 변수
|
||||||
POSTGRES_DB=ilshin
|
POSTGRES_DB=bns_system
|
||||||
POSTGRES_USER=postgres
|
POSTGRES_USER=postgres
|
||||||
POSTGRES_PASSWORD=your_production_password
|
POSTGRES_PASSWORD=waceplm0909!!
|
||||||
|
|
||||||
# JVM 옵션 (운영환경용)
|
# JVM 옵션 (운영환경용)
|
||||||
JAVA_OPTS=-Xms1024m -Xmx2048m -XX:PermSize=512m -XX:MaxPermSize=1024m
|
JAVA_OPTS=-Xms1024m -Xmx2048m -XX:PermSize=512m -XX:MaxPermSize=1024m
|
||||||
@@ -26,5 +26,4 @@ DEBUG=false
|
|||||||
SSL_ENABLED=true
|
SSL_ENABLED=true
|
||||||
|
|
||||||
# 도메인 설정
|
# 도메인 설정
|
||||||
DOMAIN=ilshin.esgrin.com
|
DOMAIN=bns-system.esgrin.com
|
||||||
ALT_DOMAIN=autoclave.co.kr
|
|
||||||
@@ -63,14 +63,9 @@ if ! git reset --hard origin/main; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# DB 컨테이너 상태 확인 및 시작 (필요시)
|
# 웹서비스 컨테이너 빌드하고 시작
|
||||||
echo "Ensuring database is running..."
|
|
||||||
docker-compose -f docker-compose.prod.yml up -d bns_system-db
|
|
||||||
|
|
||||||
# 웹서비스 컨테이너만 빌드하고 시작
|
|
||||||
echo "Starting web service..."
|
echo "Starting web service..."
|
||||||
docker-compose -f docker-compose.prod.yml up --build -d bns_system
|
docker-compose -f docker-compose.prod.yml up --build -d bns_system
|
||||||
|
|
||||||
echo "Production environment setup complete!"
|
echo "Production environment setup complete!"
|
||||||
echo "Database: Preserved and running"
|
|
||||||
echo "Web service: Restarted with latest code"
|
echo "Web service: Restarted with latest code"
|
||||||
Reference in New Issue
Block a user