ansible/playbooks/tasks/app/octoprint.yml

18 lines
540 B
YAML
Raw Normal View History

# 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
privileged: yes
network_mode: host
2022-05-19 18:16:26 -05:00
env:
ENABLE_MJPG_STREAMER: "true"
volumes:
# I know this is strictly speaking a "bad thing", but this device is an
# appliance so whatever.
- /dev:/dev
- /etc/localtime:/etc/localtime:ro
- /data/octoprint:/octoprint
tags: [ docker, octoprint ]