✨ Add Web UI for the BrotherQL label printer
This commit is contained in:
parent
57a8a7e6ad
commit
c9c9fe7329
1 changed files with 24 additions and 0 deletions
24
radon.yml
24
radon.yml
|
@ -18,6 +18,9 @@
|
|||
|
||||
pwr_meter_pulse_gw_image: "netz39/power-meter-pulse-gateway:0.3.0"
|
||||
|
||||
brotherql_host_port: 9004
|
||||
brotherql_web_image: "pklaus/brother_ql_web:alpine_9e20b6d"
|
||||
|
||||
roles:
|
||||
- role: docker_setup
|
||||
vars:
|
||||
|
@ -31,6 +34,7 @@
|
|||
- name: nodered.n39.eu
|
||||
- name: rabbitmq.n39.eu
|
||||
- name: pwr-meter-pulse-gw-19i.svc.n39.eu
|
||||
- name: brotherql-web.n39.eu
|
||||
- role: penguineer.dehydrated_cron
|
||||
|
||||
|
||||
|
@ -164,6 +168,26 @@
|
|||
proxy_port: 9003
|
||||
|
||||
|
||||
- name: Setup docker container for BrotherQL Web UI printer
|
||||
docker_container:
|
||||
name: brotherql-web
|
||||
image: "{{ brotherql_web_image }}"
|
||||
pull: true
|
||||
restart_policy: unless-stopped
|
||||
state: started
|
||||
ports:
|
||||
- "127.0.0.1:{{ brotherql_host_port }}:8013"
|
||||
command: " ./brother_ql_web.py --model QL-720NW tcp://{{ brotherql_printer_ip }}"
|
||||
detach: yes
|
||||
|
||||
- name: Setup proxy site brotherql-web.n39.eu
|
||||
include_role:
|
||||
name: setup-http-site-proxy
|
||||
vars:
|
||||
site_name: brotherql-web.n39.eu
|
||||
proxy_port: "{{ brotherql_host_port }}"
|
||||
|
||||
|
||||
handlers:
|
||||
- name: restart mosquitto
|
||||
docker_container:
|
||||
|
|
Loading…
Reference in a new issue