Files
wol/docker-compose.yml
Marius Mutu 86931a091e Add flexible Flask port configuration via environment variable
- 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>
2025-09-06 23:14:24 +03:00

23 lines
572 B
YAML

services:
wol-web:
build: .
container_name: wol-manager
restart: unless-stopped
ports:
- "${WOL_EXTERNAL_PORT:-5000}:5000"
volumes:
- ./data:/data
- ./scripts:/scripts
- ./app:/app
- /mnt/c:/mnt/c
- /run/WSL:/run/WSL
environment:
- PYTHONUNBUFFERED=1
- WSL_INTEROP=${WSL_INTEROP}
- FLASK_DEBUG=${FLASK_DEBUG:-false}
- FLASK_PORT=${FLASK_PORT:-5000}
network_mode: "${WOL_NETWORK_MODE:-bridge}"
privileged: true
cap_add:
- NET_ADMIN
- NET_RAW