Files
minio-webui/docker-compose.yml
T
paul 9cfd018d0d 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>
2025-07-23 14:11:11 +02:00

85 lines
1.9 KiB
YAML

version: '3.8'
services:
backend:
build:
context: ./backend
dockerfile: ../docker/Dockerfile.backend
container_name: minio-webui-backend
restart: unless-stopped
environment:
NODE_ENV: production
env_file:
- .env
ports:
- "${PORT:-7510}:${PORT:-7510}"
volumes:
- ./logs:/app/logs
- ~/.mc:/home/nodejs/.mc:ro
depends_on:
- redis
networks:
- minio-webui-network
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:3000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
frontend:
build:
context: ./frontend
dockerfile: ../docker/Dockerfile.frontend
container_name: minio-webui-frontend
restart: unless-stopped
ports:
- "${FRONTEND_PORT:-7511}:80"
volumes:
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
- ./ssl:/etc/nginx/ssl:ro
depends_on:
- backend
networks:
- minio-webui-network
redis:
image: redis:7-alpine
container_name: minio-webui-redis
restart: unless-stopped
command: redis-server --appendonly yes
volumes:
- redis-data:/data
networks:
- minio-webui-network
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 30s
timeout: 10s
retries: 3
# Optional: Add nginx as reverse proxy with SSL termination
nginx-proxy:
image: nginx:alpine
container_name: minio-webui-proxy
restart: unless-stopped
ports:
- "443:443"
- "80:80"
volumes:
- ./nginx/proxy.conf:/etc/nginx/conf.d/default.conf:ro
- ./ssl:/etc/nginx/ssl:ro
depends_on:
- frontend
networks:
- minio-webui-network
profiles:
- proxy
volumes:
redis-data:
driver: local
networks:
minio-webui-network:
driver: bridge