Octoprint

Portainer Stack:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
---
version: "3.9"
volumes:
  octoprint:
services:
  octoprint:
    image: octoprint/octoprint:${TAG-latest}
    container_name: ${CNAME-octoprint}
    network_mode: ${NET-bridge}
    restart: ${RST-unless-stopped}
    user: ${USER-1000:1000}
    volumes:
      - octoprint:/octoprint
#    devices:
#      - ${USB_PRINTER-/dev/ttyUSB0}:/dev/ttyUSB0
    privilleged: ${PRIVILLEGED-true}
    ports:
      - 80:80
    labels:
      - com.centurylinklabs.watchtower.enable=${AutoUpdate-true}

Environments:

1
2
3
4
5
6
7
8
CNAME=Ender3
TAG=latest
RST=unless-stopped
NET=bridge
USER=1000:1000
AutoUpdate=true
USB_PRINTER=/dev/ttyUSB0
PRIVILLEGED=true