This commit is contained in:
2021-11-17 11:20:57 +00:00
parent 110ce30558
commit 3f1c6960bf
4 changed files with 44 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
version: '3'
services:
homeassistant:
container_name: homeassistant
build: .
#image: "ghcr.io/home-assistant/raspberrypi4-homeassistant:stable"
volumes:
- config_data:/config
- /etc/localtime:/etc/localtime:ro
restart: unless-stopped
privileged: true
ports:
- '10000:80'
networks:
network:
ipv4_address: 192.168.1.252
# network_mode: host
# networks:
# lms_bridge:
# pihole_bridge:
volumes:
config_data:
name: homeassistant_config
driver: local
driver_opts:
type: nfs
o: addr=192.168.1.251,rw
device: ":/export/docker-volumes/home_assistant/config"
networks:
network:
external: true
name: macvlan_pub_net

6
docker/dockerfile Normal file
View File

@@ -0,0 +1,6 @@
FROM ghcr.io/home-assistant/raspberrypi4-homeassistant:stable
RUN apk update&& \
apk add --update --no-cache sudo bash
EXPOSE 22