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
|
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
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user