I thought I share this, maybe it helps somebody.
This is my docker-compose.yaml
---
home-assistant:
build: .
#image: 'homeassistant/rpi2-home-assistant:0.20.3'
restart: always
net: "host"
volumes:
- '/etc/localtime:/etc/localtime:ro'
- '/etc/timezone:/etc/timezone:ro'
- '/etc/home-assistant:/config'
#devices:
# - "/dev/ttyAMA0:/dev/ttyAMA0"
and the Dokckerfile:
FROM homeassistant/rpi2-home-assistant:0.22.1
RUN apt-get update
RUN apt-get install mac
The idea here is that I need to modify the original Docker image little as I need mpc (mpd-client) in the image. So I create my own docker image based on the official
homeassistant/rpi2-home-assistant image
To get it up and running run:
docker-compose build && docker-compose up -d