From 9048570bcf6332d85a8b6eefbf2efcb114097ad5 Mon Sep 17 00:00:00 2001 From: M_Viper Date: Mon, 12 Feb 2024 21:08:51 +0000 Subject: [PATCH] Dateien nach "install-home-assistant-on-docker" hochladen --- .../docker-compose.yml | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 install-home-assistant-on-docker/docker-compose.yml diff --git a/install-home-assistant-on-docker/docker-compose.yml b/install-home-assistant-on-docker/docker-compose.yml new file mode 100644 index 0000000..75d4c8f --- /dev/null +++ b/install-home-assistant-on-docker/docker-compose.yml @@ -0,0 +1,36 @@ +version: "3" # Use version 3 of the docker-compose file format + +# Service definitions for the big-bear-home-assistant application +services: + # Service name: app + # The `app` service definition + app: + # Name of the container + container_name: M_Viper-home-assistant + + # Image to be used for the container + image: ghcr.io/home-assistant/home-assistant:2024.2.1 + + # Container restart policy + restart: unless-stopped + + # Volumes to be mounted to the container + volumes: + # Mounting the local homeassistant_config directory to /config inside the container + - homeassistant_config:/config + + # Mounting the local /etc/localtime to /etc/localtime inside the container + - /etc/localtime:/etc/localtime:ro + + # Mounting the local /run/dbus to /run/dbus inside the container + - /run/dbus:/run/dbus:ro + + # Network mode for the container + network_mode: host + +# Define named volumes +volumes: + # Define a named volume. Docker manages the location on the host. + homeassistant_config: + # Define a named volume. Docker manages the location on the host. + driver: local