Advertisement
goodBEan

Untitled

Apr 29th, 2025
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.80 KB | None | 0 0
  1. version: '3.8'
  2.  
  3. services:
  4.   octoprint:
  5.     image: docker.io/octoprint/octoprint
  6.     restart: always
  7.     container_name: OCTOPRINT
  8.     ports:
  9.      - 80:80  # Host port 80 your main web interface
  10.     devices:
  11.      # Ensure the correct device names for your setup
  12.       - /dev/ttyUSB0:/dev/ttyACM0
  13.       - /dev/video0:/dev/video0
  14.       - /dev/video1:/dev/video1
  15.       - /dev/video2:/dev/video2
  16.       - /dev/video3:/dev/video3
  17.       - /dev/gpiomem:/dev/gpiomem
  18.     volumes:
  19.      - /DOCKERFILES/OCTOPRINTDOCKER/data:/octoprint  # Bind volume for OctoPrint data
  20.     environment:
  21.      # Enable MJPG Streamer for video streaming
  22.       - ENABLE_MJPG_STREAMER=true
  23.       - MJPG_STREAMER_INPUT=-n -r 1920x1080
  24.       # Set the time zone
  25.       - TZ=America/Chicago
  26.       - PUID=1000
  27.       - PGID=1000
  28.  
  29.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement