# Camera TRNG - Docker Compose # Linux only: Docker containers can access /dev/video0 via device mapping. # macOS: use ./scripts/run-mac.sh instead (Docker cannot access the Mac camera). services: camera-trng: build: context: . dockerfile: Dockerfile ports: - "0.0.0.0:8787:8787" devices: - "/dev/video0:/dev/video0" environment: - PORT=8787 - RUST_LOG=info restart: always