diff --git a/docker-compose.yml b/docker-compose.yml index 9c5ded3..1b447c8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,7 +5,7 @@ services: labels: - "com.centurylinklabs.watchtower.enable=false" environment: - - VITE_API_URL=http://backend:3000 + - VITE_API_URL=http://fromis9-backend:80 # 개발 모드 volumes: - ./frontend:/app @@ -13,7 +13,7 @@ services: # 배포 모드 (사용 시 위 volumes를 주석처리) # volumes: [] depends_on: - - backend + - fromis9-backend networks: - app restart: unless-stopped diff --git a/frontend/vite.config.js b/frontend/vite.config.js index 35b6f0b..fbbe8d1 100644 --- a/frontend/vite.config.js +++ b/frontend/vite.config.js @@ -8,24 +8,14 @@ export default defineConfig({ port: 80, allowedHosts: true, proxy: { - // 개발 모드 (localhost:3000) "/api": { - target: "http://localhost:3000", + target: "http://fromis9-backend:80", changeOrigin: true, }, "/docs": { - target: "http://localhost:3000", + target: "http://fromis9-backend:80", changeOrigin: true, }, - // 배포 모드 (사용 시 위를 주석처리) - // "/api": { - // target: "http://fromis9-backend:3000", - // changeOrigin: true, - // }, - // "/docs": { - // target: "http://fromis9-backend:3000", - // changeOrigin: true, - // }, }, }, });