diff options
author | Toby Vincent <tobyv13@gmail.com> | 2021-05-01 15:39:41 -0500 |
---|---|---|
committer | Toby Vincent <tobyv13@gmail.com> | 2021-05-01 16:06:20 -0500 |
commit | 3a4615fb4a271772e6911176a7594758e5802910 (patch) | |
tree | a2e4585197561fd4425639673251fdcb29c13018 |
initial commit
Signed-off-by: Toby Vincent <tobyv13@gmail.com>
-rwxr-xr-x | docker-compose.yml | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100755 index 0000000..156e07c --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,28 @@ +version: "2.4" + +services: + octoprint: + image: octoprint/octoprint + container_name: octoprint + environment: + - ENABLE_MJPG_STREAMER=true + devices: + - /dev/ttyUSB0:/dev/ttyUSB0 + - /dev/video0:/dev/video0 + volumes: + - ./data:/octoprint + ports: + - 8282:80 + restart: unless-stopped + labels: + - traefik.enable=true + - traefik.http.routers.octoprint.entrypoints=websecure + deploy: + placement: + constraints: + - node.labels.devices.cr10s == true + +networks: + default: + external: + name: proxy |