Skip to content

Commit

Permalink
docs: update examples
Browse files Browse the repository at this point in the history
Signed-off-by: wilmardo <[email protected]>
  • Loading branch information
wilmardo committed Feb 6, 2021
1 parent b1858b3 commit 56ea836
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 12 deletions.
6 changes: 5 additions & 1 deletion examples/compose/config/configuration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,16 @@ homeassistant: false
# allow new devices to join
permit_join: true

# Enable frontend
frontend:
port: 8080

# MQTT settings
mqtt:
# MQTT base topic for zigbee2mqtt MQTT messages
base_topic: zigbee2mqtt
# MQTT server URL
server: "mqtt://localhost"
server: "mqtt://mosquitto"
# MQTT server authentication, uncomment if required:
# user: my_user
# password: my_password
Expand Down
42 changes: 31 additions & 11 deletions examples/compose/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,32 @@
---
version: "3"
services:
zigbee2mqtt:
container_name: zigbee2mqtt
image: lansible/zigbee2mqtt:latest
read_only: true
volumes:
- ./config:/config
devices:
- /dev/ttyACM0:/dev/ttyACM0
restart: always
version: "3"
services:
volumes-provisioner:
image: hasnat/volumes-provisioner
environment:
PROVISION_DIRECTORIES: "1000:1000:0755:/data"
volumes:
- z2m_data:/data

zigbee2mqtt:
container_name: zigbee2mqtt
image: zigbee2mqtt:latest
read_only: true
volumes:
- ./config:/config
- z2m_data:/data
devices:
- /dev/ttyACM0:/dev/ttyACM0
ports:
- 8080:8080
restart: always
depends_on:
- volumes-provisioner

mosquitto:
container_name: mosquitto
image: mosquitto:latest
read_only: true

volumes:
z2m_data:
2 changes: 2 additions & 0 deletions examples/kubernetes/configmap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ data:
serial:
# Location of CC2531 USB sniffer
port: /dev/ttyACM0
# Also possible to use the tcp://
# port: tcp://192.168.1.10:23
# Map devices to persistent /data directory
devices: /data/devices.yaml
Expand Down
1 change: 1 addition & 0 deletions examples/kubernetes/statefulset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ spec:
- name: zigbee2mqtt-data
hostPath:
path: /data/zigbee2mqtt-zigbee2mqtt-data
# Remove when using a tcp serial setup
- name: zigbee-usb
hostPath:
path: /dev/serial/by-id/usb-Texas_Instruments_TI_CC2531_USB_CDC___0X00124B00194AD7EC-if00
Expand Down

0 comments on commit 56ea836

Please sign in to comment.