diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index 4be2cd1..793bb88 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -10,8 +10,6 @@ services: # ports: # Traefik will handle exposing the service stdin_open: true tty: true - depends_on: - - bns_system-db environment: CATALINA_OPTS: >- -DDB_URL=${DB_URL} @@ -29,23 +27,6 @@ services: - traefik.http.routers.bns_system.tls.certresolver=le - 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: default: external: diff --git a/env.production.example b/env.production.example index 7d1e0de..54a4dfb 100644 --- a/env.production.example +++ b/env.production.example @@ -1,17 +1,17 @@ -# PLM ILSHIN 운영환경 설정 +# BNS System 운영환경 설정 # 애플리케이션 환경 NODE_ENV=production -# 데이터베이스 설정 -DB_URL=jdbc:postgresql://localhost:5432/ilshin +# 데이터베이스 설정 - wace-plm-db의 bns_system 데이터베이스 연결 +DB_URL=jdbc:postgresql://171.20.0.51:11333/bns_system DB_USERNAME=postgres -DB_PASSWORD=your_production_password +DB_PASSWORD=waceplm0909!! # PostgreSQL 환경 변수 -POSTGRES_DB=ilshin +POSTGRES_DB=bns_system POSTGRES_USER=postgres -POSTGRES_PASSWORD=your_production_password +POSTGRES_PASSWORD=waceplm0909!! # JVM 옵션 (운영환경용) JAVA_OPTS=-Xms1024m -Xmx2048m -XX:PermSize=512m -XX:MaxPermSize=1024m @@ -26,5 +26,4 @@ DEBUG=false SSL_ENABLED=true # 도메인 설정 -DOMAIN=ilshin.esgrin.com -ALT_DOMAIN=autoclave.co.kr \ No newline at end of file +DOMAIN=bns-system.esgrin.com \ No newline at end of file diff --git a/start-prod-full.sh b/start-prod-full.sh index 3321390..2ecdec9 100644 --- a/start-prod-full.sh +++ b/start-prod-full.sh @@ -63,14 +63,9 @@ if ! git reset --hard origin/main; then exit 1 fi -# DB 컨테이너 상태 확인 및 시작 (필요시) -echo "Ensuring database is running..." -docker-compose -f docker-compose.prod.yml up -d bns_system-db - -# 웹서비스 컨테이너만 빌드하고 시작 +# 웹서비스 컨테이너 빌드하고 시작 echo "Starting web service..." docker-compose -f docker-compose.prod.yml up --build -d bns_system echo "Production environment setup complete!" -echo "Database: Preserved and running" echo "Web service: Restarted with latest code" \ No newline at end of file