forked from ned-kelly/docker-voltronic-homeassistant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (35 loc) · 1.11 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
version: '3'
services:
voltronic-mqtt:
# We're now (finally) supporting Multi-Arch builds (via Github actions) on Docker Hub!
image: bushrangers/ha-voltronic-mqtt
# Uncomment if you want to build your own local version.
#build:
# context: .
# dockerfile: Dockerfile.dev
container_name: voltronic-mqtt
privileged: true
restart: always
volumes:
- ./config/:/etc/inverter/
devices:
# - "/dev/mem:/dev/mem"
# USB Port Mapping
- /dev/bus/usb:/dev/bus/usb:rwm
- /dev/ttyUSB0:/dev/ttyUSB0:rwm
- /dev/ttyUSB1:/dev/ttyUSB1:rwm
# Serial Port Mapping...
- /dev/ttyS0:/dev/ttyS0
- /dev/ttyS1:/dev/ttyS1
- /dev/ttyS2:/dev/ttyS2
# Used to auto-update images as we release new versions...
watchtower:
# Please see the following for configuration options:
# https://containrrr.github.io/watchtower/container-selection/
image: containrrr/watchtower
container_name: watchtower
restart: always
privileged: true
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command: --interval 500