version: '3.8' services: haproxy-manager: build: context: .. dockerfile: docker/Dockerfile ports: - "80:80" - "443:443" - "5000:5000" volumes: - haproxy-certs:/etc/haproxy/certs - letsencrypt:/etc/letsencrypt - sqlite-data:/app/backend/data environment: - FLASK_ENV=production - SECRET_KEY=changeme - DATABASE_URL=sqlite:///data/haproxy-manager.db - JWT_SECRET_KEY=change-this-in-production healthcheck: test: ["CMD", "curl", "-f", "http://localhost:5000/health"] interval: 30s timeout: 10s retries: 3 start_period: 5s restart: unless-stopped volumes: haproxy-certs: letsencrypt: sqlite-data: