First post, and new to balena and docker so I know I have loads of learning to do, take it easy
I am trying to run Home Assistant and WIFI-Connect within the docker/balena environment and having issues combining them both. What happens is that I dont see any WIFI hotspot created once the Pi3 boots.
Below is a few of the config files used, I am sure its something simple which I am just missing, any pointers appreciated.
docker-compose.yml:
version: '2.1'
volumes:
config:
services:
homeassistant:
build: homeassistant
ports:
- 80:8123
privileged: true
volumes:
- 'config:/config'
restart: always
devices:
- "/dev:/dev"
- "/dev/serial/by-id/usb-0658_0200-if00:/dev/zwave"
mqtt:
image: arm32v6/eclipse-mosquitto
ports:
- "1883:1883"
restart: always
hass-configurator:
image: "causticlab/hass-configurator-docker:arm"
restart: always
ports:
- "8080:3218"
volumes:
- 'config:/hass-config'
environment:
- HC_BASEPATH=/hass-config
wifi-connect:
build: ./wifi-connect
network_mode: "host"
labels:
io.balena.features.dbus: '1'
cap_add:
- NET_ADMIN
environment:
DBUS_SYSTEM_BUS_ADDRESS: "unix:path=/host/run/dbus/system_bus_socket"
homeassistant Dockerfile:
FROM homeassistant/raspberrypi3-homeassistant:stable
COPY sense.yaml /tmp/sense.yaml
COPY ui-lovelace.yaml /tmp/ui-lovelace.yaml
COPY lovelace.sh /tmp/lovelace.sh
COPY sensors.sh /tmp/sensors.sh
COPY start.sh /tmp/start.sh
RUN chmod +x /tmp/start.sh
CMD ["bash","/tmp/start.sh"]
wifi-connect Dockerfile:
FROM balenalib/raspberrypi3-debian
RUN install_packages dnsmasq wireless-tools
RUN apt-get update && apt-get install -y --no-install-recommends apt-utils
WORKDIR /usr/src/app
ARG VERSION="4.4.5"
RUN curl -Ls https://github.com/balena-io/wifi-connect/releases/download/v$VERSION/wifi-connect-v4.4.5-linux-rpi.tar.gz \
| tar -xvz -C /usr/src/app/
COPY scripts/start.sh .
CMD ["bash", "start.sh"]