-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (44 loc) · 1.23 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
version: '3'
services:
# MQTT container
mqtt:
image: eclipse-mosquitto:${MQTT_VERSION}
container_name: mqtt
restart: always
ports:
- 1883:1883
volumes:
- ./volumes/mqtt/config:/mosquitto/config
- ./volumes/mqtt/data:/mosquitto/data
- ./volumes/mqtt/log:/mosquitto/log
# Homeassistant container
homeassistant:
container_name: home-assistant
image: homeassistant/raspberrypi3-homeassistant:${HOMEASSISTANT_VERSION}
volumes:
- ./volumes/homeassistant:/config
environment:
- TZ=Africa/Johannesburg
restart: always
network_mode: host
# Voltronic container
voltronic-mqtt:
container_name: voltronic-mqtt
image: bushrangers/ha-voltronic-mqtt:${VOLTRONIC_VERSION}
# Uncomment if you want to build your own local version.
#build:
#context: .
#dockerfile: Dockerfile.dev
privileged: true
restart: always
volumes:
- ./volumes/voltronic/config/:/etc/inverter/
devices:
# 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