Skip to content

Commit 60aa97d

Browse files
authored
Fix(docker): resolve infinite loading (Fixes #102) (#103)
* Build(docker): update Docker config to link main and feature pages * Fix(docker): resolve infinite loading in main page
1 parent c336ae4 commit 60aa97d

File tree

5 files changed

+22
-46
lines changed

5 files changed

+22
-46
lines changed

docker-compose.yml

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,24 @@
11
services:
2-
frontend:
3-
build:
4-
context: ./frontend/spec-trackr-app # Dockerfile이 위치한 경로
5-
dockerfile: frontend.dockerfile # 사용할 Dockerfile 이름
6-
7-
container_name: react_frontend # 컨테이너 이름 지정
2+
spec-trackr:
3+
build:
4+
context: ./frontend/spec-trackr-app
5+
dockerfile: sta.dockerfile
6+
ports:
7+
- "3001:3001" # 고정 포트 매핑
8+
networks:
9+
- spec-net
810

11+
spectrackr-main:
12+
build:
13+
context: ./frontend/spectrackr-main
14+
dockerfile: main.dockerfile
915
ports:
10-
- "3002:80" # 로컬 머신의 3002 포트를 컨테이너의 80번 포트에 연결
16+
- "3003:3003" # 고정 포트 매핑
17+
networks:
18+
- spec-net
19+
depends_on:
20+
- spec-trackr
1121

12-
restart: unless-stopped # 컨테이너가 중지되었을 때 수동으로 중지하지 않은 경우 자동 재시작
22+
networks:
23+
spec-net:
24+
driver: bridge

frontend/spec-trackr-app/frontend.dockerfile

Lines changed: 0 additions & 24 deletions
This file was deleted.

frontend/spec-trackr-app/nginx/default.conf

Lines changed: 0 additions & 11 deletions
This file was deleted.

frontend/spec-trackr-app/src/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import React from 'react';
22
import ReactDOM from 'react-dom/client';
33
import './index.css';
44
import App from './App';
5-
import ComSp from "./com_sp";
65
import "./index.css";
76
import reportWebVitals from './reportWebVitals';
87
import 'bootstrap/dist/css/bootstrap.min.css';

frontend/spectrackr-main/app/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ function HomePage() {
294294
transition={{ duration: 0.5, delay: 0.2 }}
295295
>
296296
<Button
297-
onClick={() => { window.location.href = "http://localhost:3000" }}
297+
onClick={() => { window.location.href = "http://localhost:3001" }}
298298
className="bg-gradient-to-r from-cyan-500 to-blue-500 hover:from-cyan-600 hover:to-blue-600 text-white shadow-lg"
299299
>
300300
시작하기 <ChevronRight className="ml-2 h-4 w-4" />
@@ -359,7 +359,7 @@ function HomePage() {
359359
</h3>
360360

361361
<Button
362-
onClick={() => { window.location.href = "http://localhost:3000" }}
362+
onClick={() => { window.location.href = "http://localhost:3001" }}
363363
size="lg"
364364
className="mt-8 bg-gradient-to-r from-cyan-500 to-blue-500 hover:from-cyan-600 hover:to-blue-600 text-lg text-white shadow-lg"
365365
>

0 commit comments

Comments
 (0)