Yes, this is a mount full ![]()
I have spent some time on reading, and came to the conclusion to abandon my rPi setup (that served me well since OH v1), and move to a Proxmox cluster with two minis and a rPi has 3rd quorum member, because OH has become an integral part of the property, (bores, gates, irrigation), and associated buildings (house, shed, garages)… hence, it needs a 100% up-time. The latter is not a problem as we have a whole of property UPS with 75 kWh of capacity, and had no outage for the least 12 years.
I am seeking input from fellow OH users with similar experience in OH in a Proxmox LXC set-up to validate the setting, before I even install OH.
My migration path:
- based on forum posts is to install OH 3.4.3 in docker;
- then copy my openHABian files where they are supposed to go, and start OH.
- Snapshot it,
- then clean up items/rules no longer needed,
- snapshot,
- then install OH v4 and do what ever changes it brings; I think there is a conversion script that needs to be run.
- snapshot
- install v5; check, and if good
- snapshot
The first step is the OH docker-compose file, which I think should look like this:
version: '3'
services:
openhab:
image: openhab/openhab:3.4.3
container_name: openhab
restart: always
network_mode: host # Required for UPnP/SSDP discovery
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- ./openhab_addons:/openhab/addons
- ./openhab_conf:/openhab/conf
- ./openhab_userdata:/openhab/userdata
environment:
CRYPTO_POLICY: unlimited
EXTRA_JAVA_OPTS: "-Duser.timezone=Australia/Brisbane"
OPENHAB_HTTP_PORT: 8080
OPENHAB_HTTPS_PORT: 8443
# USER_ID: "1000" # Uncomment and set if using non-root host user
# GROUP_ID: "1000" # Uncomment and set if using non-root host user
This should work to connect via VScode; does UPnP, and allows for exec to at least echo and bin/sh should work. I have no dongle business or other things to connect to OH other than a MQTT broker, for which I thought I use eclipse-mosquitto instead of mosquitto.
Does the above docker-compose look OK for the stated purpose? Thanks.