diff --git a/docs/portainer-stacks/octoprint.md b/docs/portainer-stacks/octoprint.md index a1c2990..82ba5a0 100644 --- a/docs/portainer-stacks/octoprint.md +++ b/docs/portainer-stacks/octoprint.md @@ -6,15 +6,16 @@ volumes: octoprint: services: octoprint: - image: octoprint/octoprint:${tag-latest} - container_name: 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: -# - /dev/ttyUSB0:/dev/ttyUSB0 +# - ${USB_PRINTER-/dev/ttyUSB0}:/dev/ttyUSB0 + privilleged: ${PRIVILLEGED-true} ports: - 80:80 labels: @@ -23,11 +24,12 @@ services: Environments: ``` -tag=latest +CNAME=Ender3 +TAG=latest RST=unless-stopped NET=bridge -PUID=${PUID-1000} -PGID=${PGID-1000} -TZ=Europe/Lisbon +USER=1000:1000 AutoUpdate=true +USB_PRINTER=/dev/ttyUSB0 +PRIVILLEGED=true ``` \ No newline at end of file