version: "3.9" name: uulm_network_monitoring services: web: build: context: . dockerfile: nginx.Dockerfile container_name: netmon_sender_web deploy: resources: limits: cpus : "1.0" memory: 512M healthcheck: test: curl http://localhost:1935 interval: 10s ports: - 1935:1935 sender: build: context: . dockerfile: ffmpeg.Dockerfile container_name: netmon_sender_ffmpeg deploy: resources: limits: cpus : "1.0" memory: 2048M healthcheck: test: curl http://web:1935 interval: 10s environment: - CMD=/usr/local/bin/ffmpeg -f lavfi -i testsrc -vf scale=3840x2160 -r 60 -c:v libx264 -pix_fmt yuv420p -b:v 40M -f flv rtmp://web/live/test depends_on: - web devices: - /dev/dri:/dev/dri