서비스 포트 변경: 3001 -> 3000

This commit is contained in:
2026-06-11 11:33:48 +09:00
parent d82f39c2f6
commit 1f6da75907
7 changed files with 28 additions and 12 deletions
+2 -2
View File
@@ -8,7 +8,7 @@ Create `.env.production` on the production host. Do not commit it.
DATABASE_URL="mysql://CHCOCO_ADMIN_USER:PASSWORD@AWS_EC2_HOST:3306/chocomae"
AUTH_SECRET="replace-with-production-secret"
NEXTAUTH_SECRET="replace-with-production-secret"
NEXTAUTH_URL="http://NAS_HOST_OR_DOMAIN:3001"
NEXTAUTH_URL="http://NAS_HOST_OR_DOMAIN:3000"
```
Create `.env.stage` on the stage host with the same keys and stage-specific values.
@@ -21,7 +21,7 @@ Create `.env.stage` on the stage host with the same keys and stage-specific valu
2. Place `.env.production` in the repository root on the NAS.
3. In Container Manager, create a project from `docker-compose.yml`.
4. Build and start the project.
5. Open `http://NAS_HOST_OR_DOMAIN:3001/login`.
5. Open `http://NAS_HOST_OR_DOMAIN:3000/login`.
Equivalent CLI command:
+2 -2
View File
@@ -96,7 +96,7 @@
| 플랫폼 | Synology NAS (DS920+, 20GB RAM) - Docker |
| DB (개발) | localhost MariaDB |
| 실행 방법 | `docker compose up` |
| 포트 | 3001 (기존 mouse-typing과 충돌 방지) |
| 포트 | 3000 |
### 5-2. 서비스 환경
@@ -114,7 +114,7 @@ services:
chocoadmin:
build: .
ports:
- "3001:3000"
- "3000:3000"
environment:
- NODE_ENV=development
- DB_HOST=host.docker.internal
+3 -3
View File
@@ -58,7 +58,7 @@
| 하드웨어 | 맥미니 |
| IDE | IntelliJ IDEA |
| 실행 방법 | IntelliJ 터미널에서 `pnpm dev` |
| 포트 | 3001 (기존 mouse-typing과 충돌 방지) |
| 포트 | 3000 |
| DB (개발) | 맥미니 로컬 MariaDB (`localhost:3306`) |
| 환경변수 | `.env.local` |
@@ -93,12 +93,12 @@ services:
chocoadmin:
build: .
ports:
- "3001:3000"
- "3000:3000"
environment:
- NODE_ENV=production
- DATABASE_URL=mysql://USER:PASS@AWS_EC2_HOST:3306/chocomae
- NEXTAUTH_SECRET=...
- NEXTAUTH_URL=http://NAS_IP:3001
- NEXTAUTH_URL=http://NAS_IP:3000
restart: unless-stopped
```