Page History
Install postgres via Docker (with data in /opt/pgdata)
Kodeblok |
---|
mkdir /opt/pgdata
docker run -d \
--name postgres \
--restart always \
-p 5432:5432 \
-e POSTGRES_PASSWORD=****** \
-e PGDATA=/var/lib/postgresql/data/pgdata \
-v /opt/pgdata:/var/lib/postgresql/data \
postgres |
...
Add the configuration to the Home Assistant secrets file
Kodeblok |
---|
hadbconfig: postgresql://hauser:*****@10.0.0.183/homeassistant |
...