Skip to content

Commit e5f46c5

Browse files
committed
openHAB - consistency fixes - old-menu branch - 2 of 3
Uses a consistent service definition across all three branches. Removes pin to version 2.4.0. A check today shows "latest" runs on 32-bit Raspbian without problems so there appears to be no reason for the pin. There is no pin in either master or experimental so this looks like a legacy holdover. Fixes mal-formed environment variables (no leading hyphens) so it is slightly amazing that the resulting docker-compose.yml would work. Changes to ports 4050 and 4051 to be consistent with master and experimental branches. Removes commented out capabilities which seem unnecessary. Adds logging options from experimental branch. Replaces documentation with a pointer to master branch.
1 parent 7c35590 commit e5f46c5

File tree

2 files changed

+9
-14
lines changed

2 files changed

+9
-14
lines changed

.templates/openhab/service.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
11
openhab:
2-
image: "openhab/openhab:2.4.0"
32
container_name: openhab
3+
image: "openhab/openhab:latest"
44
restart: unless-stopped
55
network_mode: host
6-
# cap_add:
7-
# - NET_ADMIN
8-
# - NET_RAW
96
volumes:
107
- "/etc/localtime:/etc/localtime:ro"
118
- "/etc/timezone:/etc/timezone:ro"
129
- "./volumes/openhab/addons:/openhab/addons"
1310
- "./volumes/openhab/conf:/openhab/conf"
1411
- "./volumes/openhab/userdata:/openhab/userdata"
1512
environment:
16-
OPENHAB_HTTP_PORT: "8080"
17-
OPENHAB_HTTPS_PORT: "8443"
18-
EXTRA_JAVA_OPTS: "-Duser.timezone=Europe/Berlin"
19-
# # The command node is very important. It overrides
20-
# # the "gosu openhab tini -s ./start.sh" command from Dockerfile and runs as root!
21-
# command: "tini -s ./start.sh server"
13+
- OPENHAB_HTTP_PORT=4050
14+
- OPENHAB_HTTPS_PORT=4051
15+
- EXTRA_JAVA_OPTS: "-Duser.timezone=Europe/Berlin"
16+
logging:
17+
options:
18+
max-size: "5m"
19+
max-file: "3"

docs/Containers/openHAB.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
# Openhab
2-
## References
3-
- [Docker](https://hub.docker.com/r/openhab/openhab/)
4-
- [website](https://www.openhab.org/)
52

6-
openHAB has been added without Amazon Dashbutton binding. Port binding is `8080` for http and `8443` for https.
3+
See [documentation on master branch](https://github.com/SensorsIot/IOTstack/blob/master/docs/Containers/openHAB.md).

0 commit comments

Comments
 (0)