Files
qr-code_manager/docker-compose.yml
ske087 264a81652a Production deployment fixes and enhancements
- Added environment variable loading with python-dotenv
- Fixed Docker session permissions by using /tmp directory
- Updated .dockerignore to include .env file properly
- Enhanced docker-compose.yml with env_file directive
- Fixed Gunicorn configuration for Docker compatibility
- Updated README.md with comprehensive deployment docs
- Cleaned up debug logging from API routes
- Added DOMAIN_SETUP.md for reverse proxy guidance
- All production issues resolved and tested working
- Application now accessible at qr.moto-adv.com
2025-07-16 17:49:10 -04:00

33 lines
825 B
YAML
Executable File

version: '3.8'
services:
qr-manager:
build: .
container_name: qr-code-manager
restart: unless-stopped
ports:
- "8066:5000"
env_file:
- .env
environment:
- FLASK_ENV=production
volumes:
# Map to specific folders on your host system
- /opt/qr/qr_codes:/app/app/static/qr_codes
- /opt/qr/logos:/app/app/static/logos
- /opt/qr/sessions:/app/flask_session
- /opt/qr/persistent:/app/data
healthcheck:
test: ["CMD", "python", "-c", "import requests; requests.get('http://localhost:5000/health')"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
labels:
- "com.example.description=QR Code Manager Application"
- "com.example.service=qr-manager"
networks:
default:
name: qr-manager-network