We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fea7968 commit dd8e356Copy full SHA for dd8e356
.templates/octoprint/service.yml
@@ -3,15 +3,15 @@
3
image: octoprint/octoprint
4
restart: unless-stopped
5
environment:
6
- - TZ=Etc/UTC
7
- # - ENABLE_MJPG_STREAMER=true
8
- # - MJPG_STREAMER_INPUT=-r 640x480 -f 10 -y
9
- # - CAMERA_DEV=/dev/video0
+ - TZ=${TZ:-Etc/UTC}
+ # - ENABLE_MJPG_STREAMER=true
+ # - MJPG_STREAMER_INPUT=-r 640x480 -f 10 -y
+ # - CAMERA_DEV=/dev/video0
10
ports:
11
- "9980:80"
12
devices:
13
- - /dev/ttyAMA0:/dev/ttyACM0
14
- # - /dev/video0:/dev/video0
+ - "${OCTOPRINT_DEVICE_PATH:?eg echo OCTOPRINT_DEVICE_PATH=/dev/serial0 >>~/IOTstack/.env}:/dev/ttyACM0"
+ # - /dev/video0:/dev/video0
15
volumes:
16
- ./volumes/octoprint:/octoprint
17
0 commit comments