Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3.8'
- services:
- octoprint:
- image: docker.io/octoprint/octoprint
- restart: always
- container_name: OCTOPRINT
- ports:
- - 80:80 # Host port 80 your main web interface
- devices:
- # Ensure the correct device names for your setup
- - /dev/ttyUSB0:/dev/ttyACM0
- - /dev/video0:/dev/video0
- - /dev/video1:/dev/video1
- - /dev/video2:/dev/video2
- - /dev/video3:/dev/video3
- - /dev/gpiomem:/dev/gpiomem
- volumes:
- - /DOCKERFILES/OCTOPRINTDOCKER/data:/octoprint # Bind volume for OctoPrint data
- environment:
- # Enable MJPG Streamer for video streaming
- - ENABLE_MJPG_STREAMER=true
- - MJPG_STREAMER_INPUT=-n -r 1920x1080
- # Set the time zone
- - TZ=America/Chicago
- - PUID=1000
- - PGID=1000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement