41 lines
1.4 KiB
YAML
41 lines
1.4 KiB
YAML
# Mailcow Alias Manager - Docker Compose Configuration
|
|
#
|
|
# Production vs Development Mode:
|
|
# --------------------------------
|
|
# FLASK_ENV=production + FLASK_DEBUG=False → Uses Gunicorn (4 workers, production-ready)
|
|
# FLASK_ENV=development or FLASK_DEBUG=True → Uses Flask dev server (auto-reload, debug info)
|
|
#
|
|
# Recommended Settings:
|
|
# - Production: FLASK_ENV=production, FLASK_DEBUG=False (default)
|
|
# - Development: FLASK_ENV=development, FLASK_DEBUG=True
|
|
#
|
|
# Reverse Proxy Support:
|
|
# ----------------------
|
|
# This application is configured to work behind reverse proxies (Nginx, Traefik, Zoraxy, Authelia, etc.)
|
|
# The ProxyFix middleware automatically handles X-Forwarded-* headers for HTTPS detection
|
|
# No additional configuration needed for most standard proxy setups
|
|
|
|
services:
|
|
mailcow-alias-manager:
|
|
image: gitlab.pm/rune/malias-web:latest
|
|
container_name: mailcow-alias-manager
|
|
ports:
|
|
- "5172:5172"
|
|
volumes:
|
|
- ./data:/app/data
|
|
restart: unless-stopped
|
|
environment:
|
|
- TZ=Europe/Oslo
|
|
|
|
# Flask Configuration
|
|
# Set to 'production' for Gunicorn (recommended) or 'development' for Flask dev server
|
|
- FLASK_ENV=production
|
|
|
|
# Debug mode: False for production (recommended), True for development/troubleshooting
|
|
- FLASK_DEBUG=False
|
|
|
|
# Port configuration (default: 5172)
|
|
- FLASK_PORT=5172
|
|
|
|
# Host binding (default: 0.0.0.0 for Docker)
|
|
- FLASK_HOST=0.0.0.0 |