ERP-node/docker-compose.springboot.yml

54 lines
1.4 KiB
YAML

version: '3.8'
services:
# Spring Boot 백엔드
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: pms-backend
ports:
- "8080:8080"
environment:
- SPRING_PROFILES_ACTIVE=dev
- SPRING_DATASOURCE_URL=jdbc:postgresql://39.117.244.52:11132/plm?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Seoul
- SPRING_DATASOURCE_USERNAME=postgres
- SPRING_DATASOURCE_PASSWORD=ph0909!!
- LANG=ko_KR.UTF-8
- LANGUAGE=ko_KR:ko
- LC_ALL=ko_KR.UTF-8
- TZ=Asia/Seoul
- JAVA_OPTS=-Xms512m -Xmx1024m -Dfile.encoding=UTF-8 -Duser.timezone=Asia/Seoul -Djava.awt.headless=true
networks:
- pms-network
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/api/actuator/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
# Next.js 프론트엔드
frontend:
build:
context: ./frontend
dockerfile: Dockerfile.dev
container_name: pms-frontend
ports:
- "3000:3000"
environment:
- NEXT_PUBLIC_API_URL=http://localhost:8080/api
volumes:
- ./frontend:/app
- /app/node_modules
- /app/.next
networks:
- pms-network
restart: unless-stopped
depends_on:
- backend
networks:
pms-network:
driver: bridge