Simplify the Octoprint stack since it requires websockets and stuff apparently and I really don't want to mess with that plus it's an embedded device so who really cares all that much

This commit is contained in:
Salt 2022-05-10 07:00:24 -05:00
parent 90ad046d98
commit 4942c42422
2 changed files with 2 additions and 20 deletions

View File

@ -9,10 +9,6 @@
state: started state: started
restart_policy: unless-stopped restart_policy: unless-stopped
pull: yes pull: yes
pre_tasks:
- name: ensure docker network
docker_network: name=web
tags: [ docker ]
tasks: tasks:
- name: include tasks for applications - name: include tasks for applications
include_tasks: tasks/{{ item }} include_tasks: tasks/{{ item }}
@ -25,19 +21,6 @@
backup_s3backup_list_extra: backup_s3backup_list_extra:
- /data - /data
tags: [ backup ] tags: [ backup ]
- role: ingress
vars:
ingress_container_image: "nginx:latest"
ingress_container_ports:
- 80:80
ingress_container_config_mount: /etc/nginx/conf.d
ingress_container_persist_dir: /data/nginx
ingress_listen_args: 80
ingress_listen_tls: no
ingress_servers:
- name: octoprint.local.desu.ltd
proxy_pass: http://octoprint:80
tags: [ ingress ]
- hosts: vm-bot-1.home.mgmt.desu.ltd - hosts: vm-bot-1.home.mgmt.desu.ltd
gather_facts: no gather_facts: no
module_defaults: module_defaults:

View File

@ -4,15 +4,14 @@
docker_container: docker_container:
name: octoprint name: octoprint
image: octoprint/octoprint:latest image: octoprint/octoprint:latest
ports:
- 80:80
# Uncomment all this stuff when the camera shows up # Uncomment all this stuff when the camera shows up
# env: # env:
# ENABLE_MJPG_STREAMER: true # ENABLE_MJPG_STREAMER: true
# devices: # devices:
# - /dev/ttyACM0:/dev/ttyACM0 # - /dev/ttyACM0:/dev/ttyACM0
# - /dev/video0:/dev/video0 # - /dev/video0:/dev/video0
networks:
- name: web
aliases: [ "octoprint" ]
volumes: volumes:
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
- /data/octoprint:/octoprint - /data/octoprint:/octoprint