forked from iamdoubz/balena-Raspberry3B01
docker-compose for RPIPLAY and HOMEASSISTANT
This commit is contained in:
@@ -0,0 +1,57 @@
|
||||
version: '2.1'
|
||||
volumes:
|
||||
config: {}
|
||||
mosquitto: {}
|
||||
services:
|
||||
rpiplay:
|
||||
build:
|
||||
context: ./
|
||||
privileged: true
|
||||
restart: always
|
||||
network_mode: host
|
||||
devices:
|
||||
- /dev/dri
|
||||
- /dev/vchiq
|
||||
group_add:
|
||||
- video
|
||||
- audio
|
||||
environment:
|
||||
DBUS_SYSTEM_BUS_ADDRESS: 'unix:path=/host/run/dbus/system_bus_socket'
|
||||
labels:
|
||||
io.balena.features.dbus: '1'
|
||||
homeassistant:
|
||||
build:
|
||||
context: homeassistant
|
||||
ports:
|
||||
- '80:8123'
|
||||
privileged: true
|
||||
volumes:
|
||||
- 'config:/config'
|
||||
restart: always
|
||||
mqtt:
|
||||
build:
|
||||
context: mqtt
|
||||
ports:
|
||||
- '1883:1883'
|
||||
restart: always
|
||||
volumes:
|
||||
- 'mosquitto:/mosquitto/data'
|
||||
hass-configurator:
|
||||
image: 'causticlab/hass-configurator-docker:latest'
|
||||
restart: always
|
||||
ports:
|
||||
- '3218:3218'
|
||||
volumes:
|
||||
- 'config:/hass-config'
|
||||
environment:
|
||||
HC_BASEPATH: /hass-config
|
||||
appdaemon:
|
||||
container_name: app-daemon
|
||||
image: acockburn/appdaemon:latest
|
||||
ports:
|
||||
- "5050:5050"
|
||||
volumes:
|
||||
- config:/conf
|
||||
restart: always
|
||||
depends_on:
|
||||
- homeassistant
|
||||
Reference in New Issue
Block a user