Skip to content

Instantly share code, notes, and snippets.

@sneycampos
Created June 19, 2024 23:32
Show Gist options
  • Save sneycampos/d4917ed6ce4c7fdbb399865ec93fb2b0 to your computer and use it in GitHub Desktop.
Save sneycampos/d4917ed6ce4c7fdbb399865ec93fb2b0 to your computer and use it in GitHub Desktop.
zlmediakit running in docker with docker compose and NVIDIA GPU Capabilities
services:
zlmediakit:
image: zlmediakit/zlmediakit:master
deploy:
resources:
reservations:
devices:
- capabilities: [gpu]
environment:
- NVIDIA_VISIBLE_DEVICES=all
runtime: nvidia
ports:
- "1935:1935"
- "8080:80"
- "8443:443"
- "8554:554"
- "10000:10000"
- "10000:10000/udp"
- "8000:8000/udp"
- "9000:9000/udp"
restart: unless-stopped
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment