commit b227e8e296556a7ad2c669fc180352669f3994c4 Author: zro Date: Mon Jun 8 10:43:33 2026 +0300 init diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..805ae17 --- /dev/null +++ b/.gitignore @@ -0,0 +1,25 @@ +# Secrets +.env +*.pem +*.key + +# Dependencies +node_modules/ +vendor/ + +# Build outputs +dist/ +build/ +*.exe + +# IDE +.vscode/ +.idea/ +*.swp + +# OS +.DS_Store +Thumbs.db + +# Logs +*.log diff --git a/README.md b/README.md new file mode 100644 index 0000000..bad19d7 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# Home Assistant \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..51b74be --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,40 @@ +services: + homeassistant: + container_name: homeassistant + image: "ghcr.io/home-assistant/home-assistant:stable" + environment: + VIRTUAL_HOST: "ha.domain.ru" + LETSENCRYPT_HOST: "ha.domain.ru" + LETSENCRYPT_EMAIL: "my@email.ru" + # Можно добавить, если требуется указать внутренний порт: + # VIRTUAL_PORT: "8123" + expose: + - "8123" + volumes: + - ha:/config + - /etc/localtime:/etc/localtime:ro + - /run/dbus:/run/dbus:ro + restart: unless-stopped + privileged: true + networks: + - "net" + deploy: + resources: + limits: + memory: 1G # жёсткий лимит RAM + cpus: '1.0' # максимум 1 ядро CPU + reservations: + memory: 512M # гарантированный минимум RAM + cpus: '0.5' # минимум 0.5 ядра CPU + +networks: + net: + external: true + +volumes: + ha: + driver: local + driver_opts: + type: none + device: /mnt/ha + o: bind