2022-05-10 06:43:52 -05:00
|
|
|
# vim:ft=ansible:
|
|
|
|
# https://github.com/OctoPrint/octoprint-docker/blob/master/docker-compose.yml
|
|
|
|
- name: docker deploy octoprint
|
|
|
|
docker_container:
|
|
|
|
name: octoprint
|
|
|
|
image: octoprint/octoprint:latest
|
2022-05-10 21:38:24 -05:00
|
|
|
privileged: yes
|
|
|
|
network_mode: host
|
2022-05-10 06:43:52 -05:00
|
|
|
# Uncomment all this stuff when the camera shows up
|
|
|
|
# env:
|
|
|
|
# ENABLE_MJPG_STREAMER: true
|
2022-05-10 06:56:53 -05:00
|
|
|
# devices:
|
|
|
|
# - /dev/ttyACM0:/dev/ttyACM0
|
2022-05-10 06:43:52 -05:00
|
|
|
# - /dev/video0:/dev/video0
|
|
|
|
volumes:
|
2022-05-10 21:38:24 -05:00
|
|
|
# I know this is strictly speaking a "bad thing", but this device is an
|
|
|
|
# appliance so whatever.
|
|
|
|
- /dev:/dev
|
2022-05-10 06:43:52 -05:00
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
- /data/octoprint:/octoprint
|
|
|
|
tags: [ docker, octoprint ]
|