README.md

This commit is contained in:
2024-08-31 03:17:33 +01:00
parent 9ed47a4605
commit 61d2fa83dd

View File

@@ -31,8 +31,9 @@ Currently runs on docker hosted at [homesrv01](#hosting). All necessary docker c
- [Sun](#sun)
- [Time \& Date](#time--date)
- [Xbox](#xbox)
- [Hosting](#hosting)
- [Editing and Maintenance](#editing-and-maintenance)
- [Docker](#docker)
- [volumes](#volumes)
- [has\_config](#has_config)
## Devices
@@ -244,43 +245,16 @@ Home Assistant authenticates with Xbox Live through OAuth2 using the Home Assist
- [Home Assistant - Official integration documentation](https://www.home-assistant.io/integrations/xbox)
## Hosting
Currently hosted on [homesrv01.dev.lan](marcio.fernandes/homesrv01.dev.lan).
## Docker
Using [portainer stack (name: has)](./docker-compose.yaml) connected to this repo.
![portainer - home assistant](documentation/images/portainer-has.png)
![portainer - home assistant](doc/images/portainer-has.png)
Docker volumes should be restored from backups.
Repo version of docker volumes exists only for history and documentation.
Currently hosted on [homesrv01.dev.lan](marcio.fernandes/homesrv01.dev.lan).
## Editing and Maintenance
### volumes
Using code server docker container on homesrv01 with volume has_config bind to repo folder volumes/config.
#### has_config
```yaml
---
version: '3'
services:
code-server:
....
volumes:
....
- has_config:/config/workspace/has/volumes/config
....
volumes:
...
has_config:
name: has_app_config
...
```
On code server workspace.
```bash
cd /config/workspace
mkdir has
cd has
git clone ssh://git@git.limbosolutions.com:2222/marcio.fernandes/homeAssistant.git .
```
Check home assistant [config files repo](/marcio.fernandes/homeassistant.config).