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:
@@ -42,9 +42,9 @@ A full-stack image generation website with user authentication, prompt optimizat
|
||||
docker-compose up -d
|
||||
```
|
||||
|
||||
- Frontend: http://localhost:3000
|
||||
- Backend API: http://localhost:8000
|
||||
- API Docs: http://localhost:8000/docs
|
||||
- Frontend: http://localhost:3600
|
||||
- Backend API: http://localhost:3610
|
||||
- API Docs: http://localhost:3610/docs
|
||||
|
||||
## Development
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ services:
|
||||
backend:
|
||||
build: ./backend
|
||||
ports:
|
||||
- "8000:8000"
|
||||
- "3610:8000"
|
||||
environment:
|
||||
- DATABASE_URL=postgresql://user:pass@db:5432/imagecreator
|
||||
- SECRET_KEY=change-this-secret-key-in-production
|
||||
@@ -19,7 +19,7 @@ services:
|
||||
frontend:
|
||||
build: ./frontend
|
||||
ports:
|
||||
- "3000:80"
|
||||
- "3600:80"
|
||||
depends_on:
|
||||
- backend
|
||||
|
||||
|
||||
@@ -8,11 +8,11 @@ export default defineConfig({
|
||||
port: 5173,
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'http://localhost:8000',
|
||||
target: 'http://localhost:3610',
|
||||
changeOrigin: true
|
||||
},
|
||||
'/uploads': {
|
||||
target: 'http://localhost:8000',
|
||||
target: 'http://localhost:3610',
|
||||
changeOrigin: true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user