Add power meter pulse gateway for 19i room to Radon setup
This commit is contained in:
parent
9a2b07bafc
commit
fde7af78cd
1 changed files with 20 additions and 0 deletions
20
radon.yml
20
radon.yml
|
@ -16,6 +16,8 @@
|
|||
rabbitmq_image: "bitnami/rabbitmq:3.10.7"
|
||||
rabbitmq_data: "{{ data_dir }}/rabbitmq"
|
||||
|
||||
pwr_meter_pulse_gw_image: "netz39/power-meter-pulse-gateway:0.2.0"
|
||||
|
||||
roles:
|
||||
- role: docker_setup
|
||||
vars:
|
||||
|
@ -109,6 +111,24 @@
|
|||
- "{{ rabbitmq_data }}/etc_rabbitmq:/etc/rabbitmq:rw"
|
||||
|
||||
|
||||
- name: Ensure Power Meter Pulse Gateway for 19i room is running
|
||||
docker_container:
|
||||
name: pwr-meter-pulse-gw-19i
|
||||
image: "{{ pwr_meter_pulse_gw_image }}"
|
||||
ports:
|
||||
# - 127.0.0.1:9003:8080
|
||||
- 9003:8080
|
||||
env:
|
||||
AMQP_HOST: "rabbitmq.n39.eu"
|
||||
AMQP_USER: "{{ pwr_meter_amqp_user }}"
|
||||
AMQP_PASS: "{{ pwr_meter_amqp_pass }}"
|
||||
AMQP_VHOST: "/iot"
|
||||
PULSE_BINDING: "pwr-meter-pulse-19i"
|
||||
API_TOKEN: "{{ pwr_meter_api_token }}"
|
||||
|
||||
# TODO HTTPS ingress, when #727 is resolved
|
||||
|
||||
|
||||
handlers:
|
||||
- name: restart mosquitto
|
||||
docker_container:
|
||||
|
|
Loading…
Reference in a new issue