123
This commit is contained in:
@@ -4,32 +4,32 @@ services:
|
||||
build:
|
||||
context: ../../backend-spring
|
||||
dockerfile: ../docker/dev/backend-spring.Dockerfile
|
||||
container_name: pms-backend-mac
|
||||
container_name: pms-backend-mac-v2
|
||||
ports:
|
||||
- "8081:8081"
|
||||
- "8082:8082"
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
environment:
|
||||
- SPRING_PROFILES_ACTIVE=dev
|
||||
- SERVER_PORT=8081
|
||||
- SPRING_DATASOURCE_URL=jdbc:postgresql://39.117.244.52:11132/testvex
|
||||
- SERVER_PORT=8082
|
||||
- SPRING_DATASOURCE_URL=jdbc:postgresql://211.115.91.141:11134/test_dev
|
||||
- SPRING_DATASOURCE_USERNAME=postgres
|
||||
- SPRING_DATASOURCE_PASSWORD=ph0909!!
|
||||
- SPRING_DATASOURCE_PASSWORD=vexplor0909!!
|
||||
- JWT_SECRET=ilshin-plm-super-secret-jwt-key-2024
|
||||
- JWT_EXPIRATION=86400000
|
||||
- FILE_UPLOAD_DIR=./uploads
|
||||
volumes:
|
||||
- ../../backend-spring:/app
|
||||
networks:
|
||||
- pms-network
|
||||
- test-vex-network
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8081/health"]
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8082/health"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 90s
|
||||
|
||||
networks:
|
||||
pms-network:
|
||||
test-vex-network:
|
||||
driver: bridge
|
||||
|
||||
@@ -4,22 +4,23 @@ services:
|
||||
build:
|
||||
context: ../../frontend
|
||||
dockerfile: ../docker/dev/frontend.Dockerfile
|
||||
container_name: pms-frontend-mac
|
||||
container_name: pms-frontend-mac-v2
|
||||
ports:
|
||||
- "9771:3000"
|
||||
- "9772:3000"
|
||||
environment:
|
||||
- NEXT_PUBLIC_API_URL=http://localhost:8081/api
|
||||
- SERVER_API_URL=http://pms-backend-mac:8081
|
||||
- NEXT_PUBLIC_API_URL=http://localhost:8082/api
|
||||
- SERVER_API_URL=http://pms-backend-mac-v2:8082
|
||||
- NODE_OPTIONS=--max-old-space-size=8192
|
||||
- NEXT_TELEMETRY_DISABLED=1
|
||||
- WATCHPACK_POLLING=true
|
||||
volumes:
|
||||
- ../../frontend:/app
|
||||
- /app/node_modules
|
||||
- /app/.next
|
||||
networks:
|
||||
- pms-network
|
||||
- test-vex-network
|
||||
restart: unless-stopped
|
||||
|
||||
networks:
|
||||
pms-network:
|
||||
test-vex-network:
|
||||
driver: bridge
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Node.js 18 기반 이미지 사용
|
||||
FROM node:18-alpine
|
||||
# Node.js 20 기반 이미지 사용
|
||||
FROM node:20-alpine
|
||||
|
||||
# 작업 디렉토리 설정
|
||||
WORKDIR /app
|
||||
|
||||
Reference in New Issue
Block a user