fix: change ports to 3600/3610 for remote access

- frontend: 3000 → 3600
- backend: 8000 → 3610
- update vite.config.ts proxy
- update README.md

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Claude
2026-03-24 15:44:43 +08:00
parent 8c0a301e68
commit 2d786882eb
3 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -42,9 +42,9 @@ A full-stack image generation website with user authentication, prompt optimizat
docker-compose up -d docker-compose up -d
``` ```
- Frontend: http://localhost:3000 - Frontend: http://localhost:3600
- Backend API: http://localhost:8000 - Backend API: http://localhost:3610
- API Docs: http://localhost:8000/docs - API Docs: http://localhost:3610/docs
## Development ## Development
+2 -2
View File
@@ -4,7 +4,7 @@ services:
backend: backend:
build: ./backend build: ./backend
ports: ports:
- "8000:8000" - "3610:8000"
environment: environment:
- DATABASE_URL=postgresql://user:pass@db:5432/imagecreator - DATABASE_URL=postgresql://user:pass@db:5432/imagecreator
- SECRET_KEY=change-this-secret-key-in-production - SECRET_KEY=change-this-secret-key-in-production
@@ -19,7 +19,7 @@ services:
frontend: frontend:
build: ./frontend build: ./frontend
ports: ports:
- "3000:80" - "3600:80"
depends_on: depends_on:
- backend - backend
+2 -2
View File
@@ -8,11 +8,11 @@ export default defineConfig({
port: 5173, port: 5173,
proxy: { proxy: {
'/api': { '/api': {
target: 'http://localhost:8000', target: 'http://localhost:3610',
changeOrigin: true changeOrigin: true
}, },
'/uploads': { '/uploads': {
target: 'http://localhost:8000', target: 'http://localhost:3610',
changeOrigin: true changeOrigin: true
} }
} }