feat: Add flexible port configuration for development

- Change default ports to 7510 (backend) and 7511 (frontend) to avoid conflicts
- Add PORT environment variable support for both services
- Create docker-compose.dev.yml for development without SSL/nginx
- Add development script (scripts/dev.sh) for easy local development
- Create comprehensive port configuration documentation
- Update docker-compose.yml to support dynamic port configuration
- Add frontend .env.example with development settings

This allows running the application on custom ports internally without SSL,
making it easier to integrate with existing infrastructure.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-07-23 14:11:11 +02:00
parent 0087d0fddc
commit 9cfd018d0d
8 changed files with 338 additions and 9 deletions
+2 -3
View File
@@ -12,7 +12,7 @@ services:
env_file:
- .env
ports:
- "3000:3000"
- "${PORT:-7510}:${PORT:-7510}"
volumes:
- ./logs:/app/logs
- ~/.mc:/home/nodejs/.mc:ro
@@ -34,8 +34,7 @@ services:
container_name: minio-webui-frontend
restart: unless-stopped
ports:
- "80:80"
- "443:443"
- "${FRONTEND_PORT:-7511}:80"
volumes:
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
- ./ssl:/etc/nginx/ssl:ro