version: '3.8' services: people-counter: build: . ports: - "5000:5000" devices: - "/dev/video0:/dev/video0" restart: unless-stopped # Privileged mode helps with accessing hardware devices if standard mapping fails privileged: true environment: - FLASK_ENV=production