- Add FLASK_PORT environment variable support in docker-compose.yml - Update Flask app to read port from FLASK_PORT environment variable - Add FLASK_PORT configuration to .env and .env.example files - Enables running Flask on custom ports to avoid port conflicts in containerized environments 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
23 lines
696 B
Plaintext
23 lines
696 B
Plaintext
# WOL Manager Environment Configuration
|
|
|
|
# Network mode configuration
|
|
# For Windows/macOS Docker Desktop: use "bridge"
|
|
# For Linux/LXC/Proxmox: use "host" for guaranteed WOL functionality
|
|
WOL_NETWORK_MODE=bridge
|
|
|
|
# External port mapping (only used with bridge mode)
|
|
# For Windows/macOS: set the external port you want to access
|
|
# For Linux with host mode: this setting is ignored
|
|
WOL_EXTERNAL_PORT=5000
|
|
|
|
# Flask internal port (port on which Flask app runs inside container)
|
|
FLASK_PORT=5000
|
|
|
|
# Examples:
|
|
# Windows Docker Desktop:
|
|
# WOL_NETWORK_MODE=bridge
|
|
# WOL_EXTERNAL_PORT=5000
|
|
|
|
# Linux LXC/Proxmox:
|
|
# WOL_NETWORK_MODE=host
|
|
# WOL_EXTERNAL_PORT=5000 # ignored in host mode |